Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PostConstruct & PreDestroy callbacks

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

When we mean that we cannot associate any transaction context or a security context for those methods decorates as PostContruct, PreDestroy. What would happen if I associate one. Will I result in a RuntimeException?
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How will you associate a security or transaction context ? I think it's up to the container to do so. But the transactional behavoir in lifecycle callback methods is undefinied anf therefore container specific. See the discussion in the following link for an example of this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic