Setting up WebSphere Application Server

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 the amount of 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

You run the Jython script hpqm_was_config.py to set up security and create a database for the adapter web application.

The hpqm_was_config.py Jython script:
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 where profilename is the name of the profile that you want to run the script against.

    WASInstallDir/AppServer/profiles/profilename/bin

  2. Enter the following command by substituting:
    • WAS_username with the WebSphere Application Server admin user name
    • 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)
    • 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.
    For Linux.
    ./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 
    For Windows
    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

A Jython script setup security and created a database for the adapter web application.

What to do next

Install the adapter web application with another Jython script, see Deploying on WebSphere Application Server.

Feedback