[jboss-user] [JBoss Messaging] - Re: Poss solution frequent deadlocks on SQLServer
do-not-reply at jboss.com
Wed Nov 14 05:11:48 EST 2007
No problem - hope it helps.
I have seen the JBMSpringJMSTemplateNotes wiki and we are only sending messages using the JCA factory so I think that's ok.
However we also use Spring to receive messages. (We were originally using their DefaultMessageListenerContainer but turned out to be SLOW -- as I notice you've mentioned on previous occassions). So we started using their SimpleMessageListenerContainer which registers a MessageListener on a MessageConsumer. However the problem with this is that messages seem to be getting acknowleged in spite of failure (setRollbackOnly called) and no redelivery is occurring.
Looking at the JBoss Messaging source, SessionAspect.handlePostDeliver() calls isXAAndConsideredNonTransacted() which returns true because the SessionState's treatAsNonTransactedWhenNotEnlisted is set to true.
Is the solution to somehow to set treatAsNonTransactedWhenNotEnlisted to false? What does an MDB container do here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104445#4104445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104445
More information about the jboss-user