• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

EJB, JMS and Transaction

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ;-)
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic