Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trans-attribute in ejb-jar.xml for MDB

 
Shaily Sharma
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic