This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Jms jta requires_new

I'm using Spring 2.5.6
Deploying on a WAS7 (IBM JVM 1.6).
With a container managed persitence unit(hibernate).
And a JMS connection factory using a Resource adaptor, non XA (for various reasons)

What I want to do.
A jms:listener-container receives a message (transtional).
A database transaction is started (because of non XA).
Inside this transaction a JMS message is send. The problem is that this JMS message should "never" be rolledbacked.

I tried using REQUIRES_NEW, but that doesn't work unless I add the JmsTransactionManager. But when I add the JmsTransactionManager, the jms connections are never closed by Spring (atleast thats what I think) and the jms connection-pool runs out of connections.