WebSphere-Modify WAS Datasource Attributes Dynamically

Some WAS Datasource attributes can be modified dynamically without restarting the server.
Using the following command to change the attributes

(1) get the datasource id

set ds [$AdminControl queryNames type=DataSource,name=Datasource1, process=server1,*]

(2) change the datasource minimum connections from default value 1 to 0

$AdminControl setAttribute $ds minConnections 0

(3) get the minimum connections

$AdminControl getAttribute $ds minConnections

(4) list all datasource attributes and its operations

$Help attributes $ds
$Help operations $ds

(5) show the data source connection pool content

$AdminControl invoke $ds showPoolContents

Advertisements

About this entry