WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Changing connection pool settings with the wsadmin tool

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

Why and when to perform 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:

Steps for this task

  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 Examples: changing connection pool settings with the wsadmin tool



Sub-topics
Examples: changing connection pool settings with the wsadmin tool
Example: Connection factory and data source Mbean access using wsadmin

Related reference
Wsadmin tool

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tdat_chgconwsadmin.html

© Copyright IBM Corporation 2003, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)