aspose file tools*
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
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
Author

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
Marshal

Joined: May 26, 2003
Posts: 30957
    
158

Shaily,
"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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: trans-attribute in ejb-jar.xml for MDB