Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

non transacted queue listener session

manivmaniv Member Posts: 10

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

Sign In or Register to comment.