non transacted queue listener session
This would help for the new solace Bee,
while enabling spring based jmsListener for the solace queue (No Txn), need to explicitly make SessionTransacted=false and then make **mandatory **TransationManager=null.
If we make only SessionTransacted=false while enabling listener, doesn't work.
.....................
@Bean
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
ConnectionFactory connectionFactory,
DefaultJmsListenerContainerFactoryConfigurer configurer) {
DefaultJmsListenerContainerFactory listenerFactory =
new DefaultJmsListenerContainerFactory();
configurer.configure(listenerFactory, connectionFactory);
listenerFactory.setTransactionManager(null);
listenerFactory.setSessionTransacted(false);
return listenerFactory;
}
......................................
@JmsListener(destination = "${solace.jms.subscriberservice.rl.queue.name}",containerFactory = "jmsListenerContainerFactory")
public void handle(Message message) {
.....................
..............
}
Happy coding...