String integrationMode =jmsService.getType();
List <JmsHost> jmsHostList = jmsService.getJmsHost();
if (jmsHostList == null) return false;
String defaultJmsHostName = jmsService.getDefaultJmsHost();
JmsHost defaultJmsHost = null;
for (JmsHost host : jmsHostList){
if(defaultJmsHostName != null && defaultJmsHostName.equals(host.getName())) {
defaultJmsHost = host;
break;
}
}
if(defaultJmsHost == null && jmsHostList.size() >0) {
defaultJmsHost = jmsHostList.get(0);
}
boolean lazyInit = false;
if (defaultJmsHost != null)
lazyInit = Boolean.parseBoolean(defaultJmsHost.getLazyInit());
//we don't manage lifecycle of remote brokers
if(REMOTE.equals(integrationMode))
return false;