This Jython script deploys the adapter web application
on a single WebSphere® Application
Server.
Before you begin
A Jython script
hpqm_was_config.py setup
security and created a database for the adapter web application on WebSphere Application Server.
Important: To deploy the adapter web application on a WebSphere Application Server,
V8.0 or V8.5, 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 procedure
Deploying on WebSphere Application Server.
About this task
You run a Jython script to deploy the adapter web application.
The
hpqm_deploy.py Jython
script does the following tasks:
- Create an activation plan
- Clean up the temp directory
- Install the adapter web application (hpqm.war)
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
- To set up WebSphere Application
Server, open a command window and change to the following directory
where profilename is the name of the profile that
you want to run the script against.
WASInstallDir/AppServer/profiles/profilename/bin
- 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).
- 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.
Tip: During the installation, by default, the web
application file (hpqm.war) is copied into the HPInstallDir/server/webapps/ directory.

./wsadmin.sh -language jython -user WAS_username -password WAS_password -f path to the script/hpqm_deploy.py nodeName serverName HPInstallDir/server/webapps/

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/
- Log in to the WebSphere Integration
Solutions Console to start the web application.
Results
A Jython script deployed the adapter web application on WebSphere Application Server.
What to do next
Set the properties for the adapter, see
Setting up adapter properties.