This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Transaction in MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction in MDB" Watch "Transaction in MDB" New topic
Author

Transaction in MDB

chhachhrauli Garg
Greenhorn

Joined: Sep 18, 2006
Posts: 2
Hi All,

Can anybody please help me in understanding transaction in MDB. ejbRemove() and setMessageDrivenContext() both run in no Transaction in MDB. Do we need to cram this or is there any way to understand why these two methods are not a part of transaction in MDB?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

You need transactions for business logic code. The onMessage() is where the business logic is found in case of MDB so it does not make sense to have transactions in other methods.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transaction in MDB
 
Similar Threads
Transactions and Messege Driven Beans
MDB deadlock - how to solve it?
MDB tranx attribute ?
MDB Transaction for listener method
MDB - Bean Managed Transaction