This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Default Transaction Attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Default Transaction Attribute" Watch "Default Transaction Attribute" New topic
Author

Default Transaction Attribute

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
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


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Feb 13, 2006
Posts: 63
I think in EJB3 it will be 'Required' required by the spec.

-Andy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Default Transaction Attribute