Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic