final IiopService iiopService = config.getIiopService();
if (iiopService != null) {
List<IiopListener> iiopListenerList = iiopService.getIiopListener();
for (IiopListener oneListener : iiopListenerList) {
if (Boolean.valueOf(oneListener.getEnabled()) && Boolean.valueOf(oneListener.getLazyInit())) {
NetworkListener dummy = new DummyNetworkListener();
dummy.setPort(oneListener.getPort());
dummy.setAddress(oneListener.getAddress());
dummy.setProtocol("light-weight-listener");
dummy.setTransport("tcp");
dummy.setName("iiop-service");
createNetworkProxy(dummy);
}
}
}
/*
* Do the same as above for JMS listeners also but only for MQ's EMBEDDED MODE
*/
final JmsService jmsService = config.getJmsService();
if (jmsService != null) {
if ("EMBEDDED".equalsIgnoreCase(jmsService.getType())) {
List<JmsHost> jmsHosts = jmsService.getJmsHost();
for (JmsHost oneHost : jmsHosts) {
if (Boolean.valueOf(oneHost.getLazyInit())) {
String jmsHost = null;
if (oneHost.getHost() != null && JMS_DEFAULT_HOST.equals(oneHost.getHost()))
jmsHost = JMS_DEFAULT_LISTENER_IP;
else
jmsHost = oneHost.getHost();
NetworkListener dummy = new DummyNetworkListener();
dummy.setPort(oneHost.getPort());
dummy.setAddress(jmsHost);
dummy.setProtocol("light-weight-listener");
dummy.setTransport("tcp");
dummy.setName("mq-service");
createNetworkProxy(dummy);
}
}
}
}