• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!