+

Search Tips   |   Advanced Search

Change connection pool settings with wsadmin


Use the wsadmin scripting tool to change connection pool settings.

The WAS wsadmin tool provides the ability to run scripts. Use the wsadmin tool to manage a WAS installation, as well as configuration, application deployment, and server run-time operations.

The WAS only supports the Jacl and Jython scripting languages. To learn more about wsadmin see Start wsadmin.

To use wsadmin to change connection pool settings:

 

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

    To change connection pool settings, you 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 Example: Changing connection pool settings with wsadmin


Example: Changing connection pool settings with wsadmin
Example: Accessing MBean connection factory and data sources using wsadmin

 

Related


Wsadmin tool