aspose file tools*
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
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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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
Call Back from EJB
callback and lifecycle methods
is HFEJB contradictory?
implement command in alert
ServletContextListener Doubt??