Deploying on WebSphere Application Server

You use a Jython script to deploy the adapter web application on a single WebSphere® Application Server.

Before you begin

You ran a Jython script hpqm_was_config.py to set up security and create a database for the adapter web application on WebSphere Application Server.
Important: To deploy the HP adapter web application on a WebSphere Application Server, V8.0, you must set the class-loader. The class-loader policy is set to single class loader for the application. The class-loader mode is set to classes loaded with local class loader first (parent last). For more information about setting the class loaders, see step 10 in this procedureDeploying on WebSphere Application Server.

About this task

The hpqm_deploy.py Jython script does the following tasks:
Important: A 64-bit operating system requires a minimum of 4 GB of server memory to run the Jython scripts. A 32-bit operating system requires a minimum of 1.2 GB of server memory to run the Jython scripts. If you reduce the initial and maximum heap sizes from 4 GB, you must also change the JVM arguments -Xmx4g and -Xms4g to match the specified heap size.

Procedure

  1. To set up WebSphere Application Server, open a command window and change to the following directory: WASInstallDir/AppServer/profiles/profilename/bin where profilename is the name of the profile that you want to run the script against
  2. Run the following command by substituting:
    • WAS_username with the WebSphere Application Server admin username.
    • WAS_password with the admin user password.
    • path to the script with the location of the script, for example, HPInstallDir/server/was/hpqm_deploy.py (notice the forward slash on Windows platform).
    • nodeName with the WebSphere Application Server node name.
    • serverName with the WebSphere Application Server server name.
    • HPInstallDir/server/webapps with the path to the adapter web application war file. To avoid problems, do not use spaces in the path. You can use double quotation marks for paths with spaces.
    Note: If you used IBM® Installation Manager to install the adapter web application and during the installation cleared the check box for Install Tomcat 7, by default, the web application file (hpqm.war) is copied into the HPInstallDir/server/webapps/ directory. If during installation you selected Install Tomcat 7, the web application file (hpqm.war) is copied into the HPInstallDir/server/tomcat/webapps/ directory. Note the forward slash at the end of the path.
    For Linux.
    ./wsadmin.sh -language jython -user WAS_username -password WAS_password -f path to the script/hpqm_deploy.py  nodeName serverName HPInstallDir/server/webapps/ 
    For Windows
    Note: You must use forward slashes for the path to the webapps directory and end the path name with a forward slash. For example, HPInstallDir/server/webapps/
    wsadmin.bat -language jython -user WAS_username -password WAS_password -f path to the script/hpqm_deploy.py  nodeName serverName HPInstallDir/server/webapps/ 
  3. Log in to the WebSphere Integration Solutions Console to start the web application.

What to do next

Set up properties for the adapter, see Setting up properties for the HP adapter.

Feedback