File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes all container call backs are invoked in unspecified transaction? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "all container call backs are invoked in unspecified transaction?" Watch "all container call backs are invoked in unspecified transaction?" New topic
Author

all container call backs are invoked in unspecified transaction?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
does all container call backs of all bean types are invoked in un specified transaction context?
SessionSynchronization.afterCompletion() is invoked in no transaction.

is no transaction and unspecified transactions are same?.

can we use setRollbackOnly() on unspecified transactions?

Thanks,
Yamini.
Paulus Maessen
Greenhorn

Joined: Sep 29, 2004
Posts: 12
Hi Yamini,

if you haven't obtained a copy of the EJB specification from SUN you should because you can find it there:

1. Not all. The specification lists the callbacks that run in an unspecified transaction context.
2. Unspecified transaction context means that the specification doesn't demand anything from the container. Some containers may use a transaction, others may use no transaction at all.
3. No. See e.g. table in par. 7.6.1. I believe the container will throw a java.lang.IllegalStateException.

Hope this helps,
Paulus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: all container call backs are invoked in unspecified transaction?
 
Similar Threads
operations allowed in the methods of stateful session bean
setRollbackOnly() is ejbCreate()
HFEJB questions 18 on page 371
Bean Things are confusing !!
Unspecified transaction context