-
Jan 25th, 2008, 06:36 PM
#1
MDB, WMQ, and JmsGatewaySupport
I'm trying to use Spring's JmsGatewaySupport with WMQ and JBoss to create a JMS Router. But I receive an WMQ error "MQJE001: Completion Code 2, Reason 2072". IBM states that this is due to caching of the session object. Has anyone been able to use this with the above configuration?
Here's a link to IBM's description of the problem:
http://www-1.ibm.com/support/docview...id=swg21202628
-
Jan 29th, 2008, 10:16 AM
#2
Are you running under a global transaction when you're doing this? It could be related to the way the Session is retrieved from the TransactionSynchronizationManager... although I wouldn't think that this would be the case. Can you post the offending code?
Also, are you using MDBs for this? JmsGatewaySupport is more for outwardly-initiated queue operations rather than inbound processing. If you were using message-driven POJOs, I can tell you that DefaultMessageListenerContainer by default shares Connection objects between concurrent consumer calls. With WMQ, you must set sharedConnectionEnabled to false.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules