• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PostConstruct and 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
What is means when we say these Callbacks are invoked from an unspecified Transaction and Security contruct?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can it be said that in general the PostContruct callback (for Session bean (both types) and MDB's) always happens after all DI has been done?
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can it be said that in general the PostContruct callback (for Session bean (both types) and MDB's) always happens after all DI has been done?
Yes, see the state diagrams of the bean types and the following remarks in the core spec:

4.4 (stateful session bean)
4.5.1 (stateless session bean)
5.5 (MDB)
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not in general.. You can say FOR SURE..
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic