Changing connection pool settings with the wsadmin tool

You can use the wsadmin scripting tool to change connection pool settings.

About this task

The WebSphere Application Server wsadmin tool provides the ability to run scripts. You can use the wsadmin tool to manage a WebSphere Application Server installation, as well as configuration, application deployment, and server run-time operations. The WebSphere Application Server only supports the Jacl and Jython scripting languages. To learn more about the wsadmin tool see Starting the wsadmin scripting client.

To use the wsadmin tool to change connection pool settings:

Procedure

  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 you are resetting
  2. For Jacl code examples of each of the connection pool settings, see Example: Changing connection pool settings with the wsadmin tool



In this information ...


Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 10:03:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=tdat_chgconwsadmin
File name: tdat_chgconwsadmin.html