Part 8. Deploying application pattern instances
In Workload Deployer, if a virtual application pattern is like the blueprint for an application workload, then a virtual application instance is the completed house. Up to this point in the tutorial, you have used Rational Application Developer and Workload Deployer to work with virtual application patterns. The distinction between the pattern and the instance of the pattern is expressed in Rational Application Developer in terms of the actions you can take.
In this part of the tutorial, you deploy (or start, or run) the AjaxHelloWeb virtual application pattern, resulting in the creation on Workload Deployer of a virtual application instance.
In Rational Application Developer, in the Servers view, right-click on AjaxHelloWeb and select Start.
Rational Application Developer dispatches an operation to Workload
Deployer to deploy a new virtual application instance from the virtual
application pattern. This operation takes several minutes to complete
while Workload Deployer provisions and configures the virtual
application instance and supporting middleware (see Figure 28). After
deployment completes normally, the state and status of the
AjaxHelloWeb virtual application pattern should change to
Figure 28. Deployment progress
- In the Servers view, right-click on AjaxHelloWeb
and select Get Information to open the Cloud
Application Information Dialog as shown in Figure 29.
Figure 29. The Information dialog
It may take a moment for the dialog to open while Rational Application Developer retrieves information about the published and deployed application from Workload Deployer.
The dialog is divided into two sections. The
Applicationsection has information about the published virtual application pattern. The
Deploymentsection has information about the deployed virtual application instance, if any.
Applicationsection shows the name, unique identifier, pattern type, description of the virtual application pattern, and information about the creation and most recent update to the pattern.
The Deployment section shows the name, unique identifier, status, and creation details of the virtual application instance. Depending on the nature of the components deployed with the pattern, various application endpoint URLs may be listed. Because AjaxHelloWeb includes a WAR component, one of the endpoints is the root of the resulting Web application.
Note: You can also open the dialog for virtual application patterns that have not been deployed (such as in the stopped state), in which case the Deployment section of the dialog is intentionally left blank.
- In the Cloud Application Information dialog, click on the endpoint
URL in the form http://.../AjaxHello_WEB/.
Rational Application Developer opens your preferred browser on the
endpoint, showing you the index.html page of the AjaxHello_WEB
application as shown in Figure 30.
Figure 30. The Web application sample
- In Rational Application Developer, click OK to close the Cloud Application Information dialog. Leave the browser open.