You can modify nested attributes for a configuration object using scripting and the wsadmin tool.
The attributes for a WebSphere® Application Server configuration object are often deeply nested. For example, a JDBCProvider object has an attribute factory, which is a list of the J2EEResourceFactory type objects. These objects can be DataSource objects that contain a connectionPool attribute with a ConnectionPool type that contains a variety of primitive attributes.
An alternative way to modify nested attributes is to modify the nested attribute directly.
Using Jacl:
set techsamp [$AdminConfig getid /DataSource:TechSamp/] set pool [$AdminConfig showAttribute $techsamp connectionPool] $AdminConfig modify $pool {{reapTime 2003}}
techsamp=AdminConfig.getid('/DataSource:TechSamp/') pool=AdminConfig.showAttribute(techsamp,'connectionPool') AdminConfig.modify(pool,[['reapTime',2003]])
techsamp=AdminConfig.getid('/DataSource:TechSamp/') pool=AdminConfig.showAttribute(techsamp,'connectionPool') AdminConfig.modify(pool,'[[reapTime 2003]]')
In this example, the first command gets the configuration id of the DataSource, and the second command gets the connectionPool attribute. The third command sets the reapTime attribute on the ConnectionPool object directly.
In this information ... | IBM Redbooks, demos, education, and more(Index) |