else if (listener instanceof JmsListener) {
final Bus bus = model.getBus(listener.getBusidref()) ;
if (!(bus instanceof JmsBus))
continue ;
final Provider provider = model.getProvider(bus) ;
if (provider instanceof JmsJcaProvider) {
// Jms JCA provider defaults to true
final JmsJcaProvider jmsJcaProvider = (JmsJcaProvider)provider ;
if (!jmsJcaProvider.isSetTransacted() || jmsJcaProvider.getTransacted())
return true ;
} else if (provider instanceof JmsProviderType) {
JmsMessageFilter filter = ((JmsListener)listener).getJmsMessageFilter() ;
if (filter == null)
filter = ((JmsBus)bus).getJmsMessageFilter() ;
if ((filter != null) && filter.getTransacted())
return true ;
}
} else if (listener instanceof SqlListener) {
final Bus bus = model.getBus(listener.getBusidref()) ;
if (!(bus instanceof SqlBus))
continue ;
final Provider provider = model.getProvider(bus) ;
if ((provider instanceof SqlProvider) && ((SqlProvider)provider).getTransacted())
return true ;
}
}
}