Example: Configuring the message listener service using wsadmin
An example configuring the message listener service for an application server follows:
- Identify the application server and assign it to the server variable:
set server [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]Example output:
server1(cells/mycell/nodes/mynode/servers/server1:server.xml#Server_1)- Identify the message listener service belonging to the server and assign it to the mls variable:
set mls [$AdminConfig list MessageListenerService $server]Example output:
(cells/mycell/nodes/mynode/servers/server1:server.xml#MessageListenerService_1)- Modify various attributes.
This example command changes the thread pool attributes:
$AdminConfig modify $mls {{threadPool {{inactivityTimeout 4000} {isGrowable true} {maximumSize 100} {minimumSize 25}}}}This example modifies the property of the first listener port:
set lports [$AdminConfig showAttribute $mls listenerPorts] set lport [lindex $lports 0] $AdminConfig modify $lport {{maxRetries 2}}This example adds a listener port:
$AdminConfig create ListenerPort $mls {{name listenerPort1} {connectionFactoryJNDIName cf/mycf} {destinationJNDIName ds/myds}}Example output:
listenerPort1(cells/mycell/nodes/mynode/servers/server1:server.xml#ListenerPort_2)- Save the changes with the following command:
$AdminConfig save