+

Search Tips   |   Advanced Search

Change connection pool settings with the wsadmin tool

Use the wsadmin scripting tool to change connection pool settings.

The wsadmin tool runs scripts. Use the wsadmin tool to manage a WebSphere Application Server installation and configuration, application deployment, and server runtime operations. The product supports the Jacl and Jython scripting languages. To learn more about the wsadmin tool see the topic Starting the wsadmin scripting client.

To use the wsadmin tool to change connection pool settings:


Tasks

  1. Launch a scripting command. There are several options for us to run scripting commands, ranging from running them interactively to running them in a profile.

    To change connection pool settings, we use the getAttribute and setAttribute commands, run against the various settings objects.

    For example, to change the connection timeout setting, the commands are:

    $AdminControl getAttribute $objectname connectionTimeout
    $AdminControl setAttribute $objectname connectionTimeout 200
    

    where:

    • $ is a Jacl operator for substituting a variable name with its value
    • getAttribute and setAttribute are the commands
    • connectionTimeout is the object whose value we are resetting

  2. For Jacl code examples of each of the connection pool settings, see the topic Example: Changing connection pool settings with the wsadmin tool.


Examples

  • Start the wsadmin scripting client
  • wsadmin scripting tool