File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB, JMS and Transaction

 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have the following question.

I have Session Stateless EJB working in CMT (container-managed transactions).
It has a method, which is sending message to MDB (message driven bean) and then proceed with different changes/updates/etc. This method works in separated transaction. Possibly it could happen that after sending message to MDB - some changes/updates/etc will fail and transaction will be rolled back.
The problem is from what I understand MDB with it's onMessage() will not be rolled back.
Any ideas? Any sources where I can read more on details about transaction management during interacting with JMS?
The easiest way is to put message sending call _after_ all changes/updates/etc. will be done. But still, there some moments that could create a problem with this - and anyway, I more concern about this question as about general question.

Thanks ;-)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic