Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMS Request/Reply Example Needed

843830Jul 14 2008 — edited Aug 3 2010
Hello All,

I have been trying to get a transactional JMS request/reply setup to work ( [http://blogs.sun.com/fkieviet/entry/request_reply_from_an_ejb] ) but have been having no luck (Glassfish V2U2).

My latest attempt was to delegate the request/reply code from my onMessage method to a bean managed transaction stateless session bean as in the above mentioned blog. Unfortunately I get the following error:

commitTransaction (XA) on JMSService:jmsdirect failed for connectionId:6701949038085421568 and onePhase:true due to TxID is already in use.
JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit one phase] operation.

Does anyone know what I am doing wrong? Or does any one have a working example of JMS Request/Reply code that I can see?

My previous attempts can be seen in this post: [http://forum.java.sun.com/thread.jspa?threadID=5313325]

Best wishes,
Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2010
Added on Jul 14 2008
21 comments
1,822 views