Configure enterprise bean containers using scripting

 

+

Search Tips   |   Advanced Search

 

Procedure

Start wsadmin

Jacl:

### Identify the application server and assign it to the serv1 variable.
set serv1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]

### Identify the EJB container belonging to the server and
### assign it to the ejbc1 variable.
set ejbc1 [$AdminConfig list EJBContainer $serv1]

### View all the attributes of the enterprise bean container.
$AdminConfig showall $ejbc1

### Modify the enterprise bean cache settings and nested attributes:
$AdminConfig modify $ejbc1 {{cacheSettings {{cacheSize 2500} {cleanupInterval 3500}}}}

### Modify the cleanup interval attribute:
$AdminConfig modify $ejbc1 {{inactivePoolCleanupInterval 15000}}

$AdminConfig save

Jython

serv1 = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/')
print serv1

ejbc1 = AdminConfig.list('EJBContainer', serv1)
print ejbc1

print AdminConfig.showall(ejbc1)

AdminConfig.modify(ejbc1, [['cacheSettings', [['cacheSize', 2500], ['cleanupInterval', 3500]]]])

AdminConfig.modify(ejbc1, [['inactivePoolCleanupInterval', 15000]])

AdminConfig.save()


 

Related Tasks

Modify nested attributes with the wsadmin tool
Configure servers with scripting

 

See Also

Commands for the AdminConfig object