aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default Transaction Attribute