• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lifecycle interceptors and transactions

 
Jelle Victoor
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What lifecycle interceptors run inside transactions?
postconstruct, predestroy?
 
Pavel Romaschenko
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's no transaction context while the livecycle methods run.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic