Modifying and deploying Java application templates

The Application Pattern Type for Java™ provides some templates for deploying common applications. Use these templates to quickly deploy the following applications: Apache Derby, Apache JMeter, and Apache Tomcat.

Before you begin

Download the application that you want to deploy. The templates are set for specific versions of these applications; you can download different versions, but you must modify some of the template information:
  • Apache Derby 10.8.2.2 is a Java database application.
  • Apache JMeter 2.7 is a load test application. When you deploy this application to the same cloud as your Java application, you can test your application with much greater loads than if you used JMeter from outside the cloud.
  • Apache Tomcat 7.0.27 is a web server application.

About this task

The templates provide information for you so that you can deploy the application as quickly as possible. You must specify some information before you can deploy the application. For example, the Apache Tomcat template already contains the port that Tomcat listens on, the log directory that Tomcat uses, and the directory that Tomcat automatically retrieves web applications from. You must specify the web application to be hosted by Tomcat, and the Tomcat file that you downloaded earlier.

Procedure

  1. Click Catalog > Virtual Application Templates. If you are on 2.3.3.3, click Pattern development > Templates > Virtual Application Templates.
  2. Select Application Pattern Type for Java 1.0.
  3. Click the template that you want to deploy.
  4. Click Open in the toolbar.
    The template is opened in the Pattern Builder.
  5. Modify the template as required, and then save the template.
    Warning icons indicate properties that are currently missing, and require your input. The following table shows the information that you must add for each template:
    Table 1. Information required by Java application templates
    Template application Required information
    Apache Derby
    Apache Derby (Java application) > Archive file
    The Apache Derby application file that you downloaded earlier.
    Apache JMeter
    Apache JMeter (Java application) > Archive file
    The Apache JMeter application file that you downloaded earlier.
    Apache Tomcat
    Apache Tomcat server (Java application) > Archive file
    The Apache Tomcat application file that you downloaded earlier.
    Web Application (Additional archive file) > Additional archive file
    The web application to be hosted by Tomcat.
    If you chose to download a different version of the Apache application, you must also modify the following template information because this information contains the version number of the application:
    Table 2. Information that contains a version number
    Template application Information that contains a version number
    Apache Derby
    Apache Derby (Java application) > Command Line
    The command that is used to start the application.
    Apache JMeter
    Apache JMeter (Java application) > Command Line
    The command that is used to start the application.
    Apache Tomcat
    Apache Tomcat server (Java application) > Command Line
    The command that is used to start the application.
    Web Application (Additional archive file) > Deploy path
    The directory that Tomcat retrieves web applications from.
    Apache Tomcat logs (Monitored file) > File
    The full path of the Tomcat log files.
  6. In the Cloud Pak System Software window, click Deploy to deploy the application template.