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: 9937

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]
wood burning stoves
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