File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Lifecycle interceptors and transactions

Jelle Victoor

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

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

Joined: Jul 20, 2005
Posts: 10441

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:
subject: Lifecycle interceptors and transactions
It's not a secret anymore!