wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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?