• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Question in MDB

 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which the following statement are true about MDBs invoked in transaction?
1. MDB must commit or rollback transaction before the completion of onMessage() method.
2. MDB can not use BMT demacation.
3. If a transaction of a CMT bean is rolled back, the message hadling also rolled back.
My answer 1, 3 are correct. That all right?
Please, let me .
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by somkiat puisungnoen:
Which the following statement are true about MDBs invoked in transaction?
1. MDB must commit or rollback transaction before the completion of onMessage() method.
2. MDB can not use BMT demacation.
3. If a transaction of a CMT bean is rolled back, the message hadling also rolled back.
My answer 1, 3 are correct. That all right?
Please, let me .



Yes Somkiat, 1 & 3 are correct. 2 is false, coz MDBs sure can use BMT.
As for Option 3, I wouldn't say that message handling is rolled back, rather, the message acknowledgement is never sent to the JMS destination
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic