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

  1. Click Patterns > Virtual Application Patterns.
  2. In the list of pattern types, select Application Pattern Type for Java 1.0.
    The list of patterns displays.
  3. Select the Sample Java EE Web application using Pattern Components.
  4. 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:

  1. Edit the name for the deployment, if needed. This name displays on the Instances page after the pattern deploys.
  2. 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.
    • 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.
  3. Set the priority for the deployment.
  4. 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.

  5. 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.
  6. 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.

  7. 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:

  1. Configure the volume for the DB2 node.
    1. Move the mouse pointer over the virtual machine icon that is associated with the DB2 node.
    2. Click the pencil icon in the storage section.
    3. On the volume tab, in the Default Block Storage (/dbinst) section:
      1. Set the file system type to jfs2.
      2. Select Create new.
      3. Specify the name for the volume, which can be any name as long as it is unique across all deployments on the system.
      4. Specify the size of the volume. The size must be larger than 3 GB.
    4. On the volume tab, in the Default Block Storage (/dbdata) section:
      1. Set the file system type to jfs2.
      2. Select Create new.
      3. Specify the name for the volume, which can be any name as long as it is unique across all deployments on the system.
      4. Specify the size of the volume. The size must be larger than 3 GB.
    5. Click OK.
  2. Optional: To edit the network settings for a virtual machine, move the mouse pointer over the virtual machine and click the pencil icon.
    1. 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.
    2. Click OK when you are finished updating the settings.
  3. When you are finished modifying the settings, click Deploy.
  4. Click Instances > Virtual Applications to view the deployed virtual application instance.
  5. Select the virtual application instance.