File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes trans-attribute in ejb-jar.xml for MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "trans-attribute in ejb-jar.xml for MDB" Watch "trans-attribute in ejb-jar.xml for MDB" New topic

trans-attribute in ejb-jar.xml for MDB

Shaily Sharma
Ranch Hand

Joined: Sep 10, 2007
Posts: 39
Hi All,
could anyone pls tell me the significance of
"trans-attribute" if set to:
1) "NotSupported" :
2) "Supports"/"Required"(difference?):

I have written MDB which has DB transaction to populate values from DB table, which attribute is suitable in this scenario.

Thanks in advance.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33132

"Not supported" means the MDB won't use a transaction. "Required" means the MDB will use a transaction. "Supported" does not apply to MDBs. In a session bean, it is used to mean the caller may or may not supply a transaction.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: trans-attribute in ejb-jar.xml for MDB
It's not a secret anymore!