This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 9930

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]
It is sorta covered in the JavaRanch Style Guide.
subject: Lifecycle interceptors and transactions
Similar Threads
EJB 3 interceptors ...
LifeCycle Callback interceptor question
how many PrePassivate methods we can have in an stateful session bean ?
@Predestroy and timeout