Warning messages when using JMS with transactions
I have a small Spring framework based webapp running in Glassfish 184.108.40.206 that makes use of a JMS queue. I have configured the ConnectionFactory to use XA transactions and configured the associated JMS listener in Spring to use the transacted acknowledge mode. The message listener receives the JMS messages just fine, but I keep seeing the following warning messages in the Glassfish logs:
WARNING|glassfish3.1.2|javax.jms.Session.mqjmsra|_ThreadID=537;_ThreadName=Thread-3;|MQJMSRA_DS4001: commit():Illegal for a non-transacted Session:sessionId=7629447213446668801
How can I get rid of these messages?