This Jython script automates the tasks of setting up a
database for the adapter web application and securing the web application
in WebSphere® Application
Server.
Before you begin
WebSphere Application
Server is installed, is secured, and started. A server profile
exists for the adapter web application.
Warning: The
Jython scripts change settings such as how much heap space for your
Java run time. If you run the Jython scripts against an existing server
profile, some settings might be overwritten. A separate profile keeps
the adapter web application settings separate from other web application
settings and avoids overwriting those settings when you run the Jython
scripts. For more information about creating a server profile for
the adapter web application, see
Creating a server profile.
About this task
The
hpqm_was_config.py Jython script
performs 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
- To set up WebSphere Application
Server, open a command window and change the directory to WASInstallDir/AppServer/profiles/profilename/bin,
where profilename is the name of the profile that
you want to run the script against.
- Enter the following command 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/conf/hpqm_was_config.py (notice
the forward slash on Windows platform),
and Path_to the_new_adapter_database_directory with
the location where you want to create the database for the adapter.
To avoid problems, do not use spaces in the path. You can use double
quotation marks for paths with spaces.

./wsadmin.sh -language jython -user WAS_username -password WAS_password -f Path_to_the_script/hpqm_was_config.py Path_to_the_new_adapter_database_directory

Note: You must use forward slashes for the path to the installation
configuration and the script directory. For example, HPInstallDir/server/was/conf/
wsadmin.bat -language jython -user WAS_username -password WAS_password -f Path_to_the_script/hpqm_was_config.py Path_to_the_new_adapter_database_directory
Results
You have run the Jython script to set up security and create
a database for the adapter web application.
What to do next
Install the adapter web application using another Jython
script, see
Deploying on WebSphere Application Server.