Offline Discover

In WKTUI, go to the Model page and select the Code View tab. Select the File > Add Model > Discover Model (offline) menu item. The following dialog box appears. Enter the path to the $WKTUI_QS_HOME/todolist_domain directory as the Domain Home, as shown in the following image.

Offline Discovery

To start the discovery process, click OK. After it completes, make the following required model changes:

  • Fill in the credentials using the values provided when you ran the startMySQL and createToDoListDomain scripts.
  • Change localhost in the JDBC URL on line 34 to mysql.

Because a server template’s ListenPortEnabled value defaults to true, this attribute was omitted from the discovered model. To make your model look the same as the hand-built one, add the ListenPortEnabled attribute with a value of true to the server template, as shown in the following image.

Offline Discovered Model

At this point, the model is roughly equivalent to the hand-built one shown in the Validate Model Code View. After you prepare the model, all the minor differences will go away.

You can stop any running WebLogic Servers in the local domain, and stop and remove the mysql container. To continue, return to Validate and Prepare the Model.