🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

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... :)

Tagged: