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 Lifecycle interceptors and transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Lifecycle interceptors and transactions" Watch "Lifecycle interceptors and transactions" New topic
Author

Lifecycle interceptors and transactions

Jelle Victoor
Greenhorn

Joined: Feb 13, 2009
Posts: 5
What lifecycle interceptors run inside transactions?
postconstruct, predestroy?
Pavel Romaschenko
Greenhorn

Joined: Jul 22, 2010
Posts: 2
It's no transaction context while the livecycle methods run.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9321
    
109

Actually, for EJB3.1 Singleton beans, the transaction context is available in lifecycle methods. So it depends on which version of EJB, the original poster is referring to.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lifecycle interceptors and transactions
 
Similar Threads
how many PrePassivate methods we can have in an stateful session bean ?
LifeCycle Callback interceptor question
Interceptors
@Predestroy and timeout
EJB 3 interceptors ...