Start the listener port if it is not started. For example:
Using Jacl:
foreach lPort $lPorts {
set state [$AdminControl getAttribute $lport started]
if {$state == "false"} {
$AdminControl invoke $lPort start
}
}
Using Jython:
# get line separator
import java
lineSeparator = java.lang.System.getProperty('line.separator')
lPortsArray = lPorts.split(lineSeparator)
for lPort in lPortsArray:
state = AdminControl.getAttribute(lPort, 'started')
if state == 'false':
AdminControl.invoke(lPort, 'start')
These pieces of Jacl and Jython code loop through the listener port
MBeans. For each listener port MBean, get the attribute value for the started
attribute. If the attribute value is set to false, then start the
listener port by invoking the start operation on the MBean.
Last updated: Mar 8, 2007 8:14:28 PM CST http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/txml_startport.html