Deploying the Sample Java EE Web application using Pattern Components virtual application pattern
Deploy the Sample Java EE Web application using Pattern Components virtual application pattern so that you can use it as a guide to create your own custom pattern components.
Procedure
- Click Patterns > Virtual Application Patterns.
- In the list of pattern types, select Application Pattern Type for Java 1.0.
The list of patterns displays.
- Select the Sample Java EE Web application using Pattern Components.
- Click Deploy the pattern into the cloud in the Actions column for the pattern that you want to deploy, or select the pattern that you want to deploy and click Deploy near the top of the details page.
On the Configure pane of the Deploy Pattern page:
- Edit the name for the deployment, if needed. This name displays on the Instances page after the pattern deploys.
- Select the environment profile that you
want to use for the deployment.
- If the Deployment
type for the selected environment profile is set to Single cloud:
- Select a Cloud Group and an IP Group.Note: You can also set the IP group for each virtual machine on the Distribute pane. You cannot change the Cloud Group for the deployment after you configure it on this pane.
- The deployment is limited to a single cloud group.
- Select a Cloud Group and an IP Group.
- If the Deployment type for the selected environment profile is set to Multi cloud, you select the cloud group and IP group for the deployment later, on the Distribute pane.
- If the Deployment
type for the selected environment profile is set to Single cloud:
- Set the priority for the deployment.
- Optional: To set up SSH access,
use one of the following options in the SSH Key section
to set the public key:
The SSH key provides access to the virtual machines in the cloud group for troubleshooting and maintenance purposes. For more information, see Related tasks.
- Modify the deployment
schedule as needed:
- Choose Start now, or choose Start later and select a date and time for the deployment to start.
- Choose Run indefinitely, or choose Run until and select a date and time for the deployment to end.
- Modify the component attributes as needed.
The attributes that display in the pattern configuration column are attributes from the components in the pattern that are not locked from editing. You can modify existing values or set values that were not specified during pattern creation. Be sure that all required fields have values. Components that have a blue dot next to the name contain required attributes that must be set before the pattern is deployed.
- When you are finished configuring all of the fields on
the Configure tab,
- if you chose an environment profile that does not have the IP addresses provided by field set to Pattern Deployer and you do not want to modify the placement, click Quick Deploy. If you choose this option, the deployment process starts. Skip to the "Testing the shared service" section.
- if you chose an environment profile that has the IP addresses provided by field set to Pattern Deployer, or you want to modify the placement, click Continue to distribute.
On the Distribute pane:
- Configure the volume for the DB2 node.
- Move the mouse pointer over the virtual machine icon that is associated with the DB2 node.
- Click the pencil icon in the storage section.
- On the volume tab, in the Default Block Storage
(/dbinst) section:
- Set the file system type to jfs2.
- Select Create new.
- Specify the name for the volume, which can be any name as long as it is unique across all deployments on the system.
- Specify the size of the volume. The size must be larger than 3 GB.
- On the volume tab, in the Default Block Storage
(/dbdata) section:
- Set the file system type to jfs2.
- Select Create new.
- Specify the name for the volume, which can be any name as long as it is unique across all deployments on the system.
- Specify the size of the volume. The size must be larger than 3 GB.
- Click OK.
- Optional: To edit the network settings for
a virtual machine, move the mouse pointer over the virtual machine
and click the pencil icon.
- On the IP Groups tab, you can modify the IP group for each of the NICs in the virtual machine. The IP groups that are listed are the IP groups that are associated with the environment profile that you chose for the deployment.
- Click OK when you are finished updating the settings.
- When you are finished modifying the settings, click Deploy.
- Click Instances > Virtual Applications to view the deployed virtual application instance.
- Select the virtual application instance.