You can configure enterprise bean containers using scripting and the wsadmin tool.
Perform the following steps to configure an enterprise bean container:
Using Jacl:
set serv1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
serv1 = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/') print serv1
set | is a Jacl command |
serv1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
getid | is an AdminConfig command |
/Cell:mycell/Node:mynode/Server:server1/ | is the hierarchical containment path of the configuration object |
Cell | is the object type |
mycell | is the optional name of the object |
Node | is the object type |
mynode | is the optional name of the object |
Server | is the object type |
server1 | is the optional name of the object |
server1(cells/mycell/nodes/mynode/servers/server1|server.xml#Server_1)
Using Jacl:
set ejbc1 [$AdminConfig list EJBContainer $serv1]
ejbc1 = AdminConfig.list('EJBContainer', serv1) print ejbc1
set | is a Jacl command |
ejbc1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
list | is an AdminConfig command |
EJBContainer | is the object type Note: The name of the object type
that you input here is the one based on the XML configuration files and does
not have to be the same name that the administrative console displays.
|
serv1 | evaluates to the ID of the server specified in step number 1 |
(cells/mycell/nodes/mynode/servers/server1|server.xml#EJBContainer_1)
Using Jacl:
$AdminConfig show $ejbc1Example output:
{cacheSettings (cells/mycell/nodes/mynode/servers/ server1|server.xml#EJBCache_1)} {components {}} {inactivePoolCleanupInterval 30000} {parentComponent (cells/mycell/nodes/mynode/servers/ server1|server.xml#ApplicationServer_1) {passivationDirectory ${USER_INSTALL_ROOT}/temp} {properties {}} {services {(cells/mycell/nodes/mynode/servers/ server1|server.xml#MessageListenerService_1)} {stateManagement (cells/mycell/nodes/mynode/servers/ server1|server.xml#StateManageable_10)}
print AdminConfig.show(ejbc1)Example output:
[cacheSettings (cells/mycell/nodes/myode/servers/ server1|server.xml#EJBCache_1)] [components []] [inactivePoolCleanupInterval 30000] [parentComponent (cells/mycell/nodes/myode/servers/ server1|server.xml#ApplicationServer_1) [passivationDirectory ${USER_INSTALL_ROOT}/temp] [properties []] [services [(cells/mycell/nodes/myode/servers/ server1|server.xml#MessageListenerService_1)] [stateManagement (cells/mycell/nodes/mynode/servers/ server1|server.xml#StateManageable_10)]
$ | is a Jacl operator for substituting a variable name with its value |
is a Jython command | |
AdminConfig | is an object representing the WebSphere Application Server configuration |
showall | is an AdminConfig command |
ejbc1 | evaluates to the ID of the enterprise bean container specified in step number 2 |
Using Jacl:
$AdminConfig showall $ejbc1Example output:
{cacheSettings {{cacheSize 2053} {cleanupInterval 3000}}} {components {}} {inactivePoolCleanupInterval 30000} {parentComponent (cells/mycell/nodes/mynode/servers/ server1|server.xml#ApplicationServer_1)} {passivationDirectory ${USER_INSTALL_ROOT}/temp} {properties {}} {services {{{context (cells/mycell/nodes/mynode/servers/ server1|server.xml#EJBContainer_1)} {listenerPorts {}} {properties {}} {threadPool {{inactivityTimeout 3500} {isGrowable false} {maximumSize 50} {minimumSize 10}}}}}} {stateManagement {{initialState START} {managedObject (cells/mycell/nodes/mynode/servers/ server1|server.xml#EJBContainer_1)}}}
print AdminConfig.showall(ejbc1)Example output:
[cacheSettings [[cacheSize 2053] [cleanupInterval 3000]]] [components []] [inactivePoolCleanupInterval 30000] [parentComponent (cells/mycell/nodes/mynode/servers/ server1|server.xml#ApplicationServer_1)] [passivationDirectory ${USER_INSTALL_ROOT}/temp] [properties []] [services [[[context (cells/mycell/nodes/mynode/servers/ server1|server.xml#EJBContainer_1)] [listenerPorts []] [properties []] [threadPool [[inactivityTimeout 3500] [isGrowable false] [maximumSize 50] [minimumSize 10]]]]]] [stateManagement {{initialState START] [managedObject (cells/mycell/nodes/mynode/servers/ server1|server.xml#EJBContainer_1)]]]
$ | is a Jacl operator for substituting a variable name with its value |
is a Jython command | |
AdminConfig | is an object representing the WebSphere Application Server configuration |
showall | is an AdminConfig command |
ejbc1 | evaluates to the ID of the enterprise bean container specified in step number 2 |
Using Jacl:
$AdminConfig modify $ejbc1 {{cacheSettings {{cacheSize 2500} {cleanupInterval 3500}}}}
AdminConfig.modify(ejbc1, [['cacheSettings', [['cacheSize', 2500], ['cleanupInterval', 3500]]]])
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
modify | is an AdminConfig command |
ejbc1 | evaluates to the ID of the enterprise bean container specified in step number 2 |
cacheSettings | is an attribute of modify objects |
cacheSize | is an attribute of modify objects |
2500 | is the value of the cacheSize attribute |
cleanupInterval | is an attribute of modify objects |
3500 | is the value of the cleanupInterval attribute |
Using Jacl:
$AdminConfig modify $ejbc1 {{inactivePoolCleanupInterval 15000}}
AdminConfig.modify(ejbc1, [['inactivePoolCleanupInterval', 15000]])
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
modify | is an AdminConfig command |
ejbc1 | evaluates to the ID of the enterprise bean container specified in step number 2 |
inactivePoolCleanupInterval | is an attribute of modify objects |
15000 | is the value of the inactivePoolCleanupInterval attribute |
Using Jacl:
$AdminConfig save
AdminConfig.save()
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
save | is an AdminConfig command |
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. Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof. |