Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default Transaction Attribute

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I tried to find it on net, but couldn't. What is the default transaction attribute in EJBs. or is it AppServer dependent?

Best Regards
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is undefined in the EJB Specification so it depends on your particular EJB Container and sometimes even on the version of the EJB Container that you are using (JBoss switched defaults between minor releases at one point I believe). For example, WebLogic defaults to NotSupported for MDBs and Supports for other types of EJBs (which is a pretty useless default). Moral of the story, also specify a transaction attribute for your EJBs.
 
Andreas Schaefer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think in EJB3 it will be 'Required' required by the spec.

-Andy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic