This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Method signatures for container callbacks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Method signatures for container callbacks" Watch "Method signatures for container callbacks" New topic
Author

Method signatures for container callbacks

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Are all the container callbacks (methods marked with container callback annotations) like PostConstruct and PreDestroy should have void return type and take no arguments?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Karnati Sudhakar
Ranch Hand

Joined: Aug 26, 2008
Posts: 270

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


Regards
Sudhakar
 
jQuery in Action, 2nd edition
 
subject: Method signatures for container callbacks
 
Similar Threads
callback and lifecycle methods
Call Back from EJB
ServletContextListener Doubt??
implement command in alert
is HFEJB contradictory?