This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

Method signatures for container callbacks

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are all the container callbacks (methods marked with container callback annotations) like PostConstruct and PreDestroy should have void return type and take no arguments?
 
Karnati Sudhakar
Ranch Hand
Posts: 270
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PostConstruct and PreDestroy should have void return type and take no arguments?


I think you can refer to the Page no 166 of EJB3 in Action for the signature of methods when it is in the same bean class or in the seperate interceptor class.

void <METHOD>(InvocationContext)�
in a separate interceptor class.
void <METHOD>()�in the bean class.


Regards
Sudhakar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic