+

Search Tips   |   Advanced Search

Application management

Use the Jython or Jacl scripting languages to manage applications with the wsadmin tool. Use the commands in the AppManagementCommands group can be used to display and process SQL Java (SQLJ) profiles or IBM Optim PureQuery Runtime bind files.

The AppManagementCommands command group for the AdminTask objectcommands include:


listSqljProfiles

Parse the EAR file of the specified application and returns a list of SQLJ files. SQLJ profiles have a .ser file name extension. If there are any files in the EAR file that are not SQLJ profiles, but have a .ser file name extension, those files can be listed also.

Parameters and return values

Batch mode example usage:

Interactive mode example usage:

The output displays with syntax specific to the local operating system. The list of available profiles can be added to a group file, with a .grp extension, directly.


processSqljProfiles

Create a DB2 customization of the SQLJ profiles. The command optionally, by default, calls the SQLJ profile binder to bind the DB2 packages.

If we are processing a large enterprise application, or we are processing many SQLJ profiles, the process might take longer than the default timeout for the wsadmin tool. The default connection timeout for the wsadmin tool is set to 3 minutes. If the default timeout is reached and you lose the connection to the server, the wsadmin console issues a timeout statement. We can check the system output log for the final results of the customization and bind process and the amount of time for that the process. Do not start the processSqljProfiles command again until the previous command has completed, or the results might be unpredictable.

To prevent this disconnection, configure the session timeout to a longer time. See the system output log for the total processing time, and use that time period as a basis for the new timeout value. To extend the default timeout value, change the wsadmin properties file that corresponds to the connection type that we are using:

bprac

There are two ways we can verify if the binding or customization took place:

Target object: The installed application SQLJ profiles. These profiles are either single, serial .ser files or profiles that are grouped in a .grp group file. This target object is required.

Parameters and return values

Batch mode example usage:

Interactive mode example usage:


listPureQueryBindFiles

Parse the EAR file of the specified application and returns a list of .bindprops and .pdqxml files that are found. PureQuery bind options files have a .bindprops file name extension. Bind files have a .pdqxml file name extension. If the EAR file contains files that are not pureQuery bind files, but have a .bindprops or a .pdqxml file name extension, those files can also be listed.

Parameters and return values

Batch mode example usage:

Interactive mode example usage:

The output displays with syntax specific to the local operating system.


processPureQueryBindFiles

Invoke the DB2 pureQuery bind utility on a list of pureQuery bind files.

If we are processing a large enterprise application, or we are processing many pureQuery bind files using wsadmin, the process might take longer than the default timeout for the wsadmin tool. The default connection timeout for the wsadmin tool is set to 3 minutes. If the default timeout is reached and the process running on the server has not yet completed, the wsadmin console issues a timeout statement. We can check the system output log on the server for the final results of the bind process and the time when that process completed. Do not start the processPureQueryBindFiles command again until the previous command has completed, or the results might be unpredictable.

To prevent this timeout, configure the wsadmin request timeout to a longer time. After a successful customization and binding process, use the system output log to estimate the total processing time. Use this time period as a basis for the new timeout value. To extend the default timeout value, change the wsadmin properties file that corresponds to the connection type that we are using:

bprac

To verify whether the binding took place, view the System Out log to determine if the bind processing was successful.

Parameters and return values

Batch mode example usage:

Interactive mode example usage:


Related:

  • Change the console session expiration
  • wsadmin AdminTask
  • Customize and binding profiles for Structured Query Language in Java (SQLJ) applications
  • IBM Optim pureQuery Runtime
  • Commands for the AdminTask object
  • wsadmin scripting tool
  • SQLJ profiles and pureQuery bind files settings