Java Message Service by Mark Richards Richard Monson-Haefel and David A Chappell

Java Message Service by Mark Richards Richard Monson-Haefel and David A Chappell

Author:Mark Richards, Richard Monson-Haefel, and David A Chappell
Language: eng
Format: mobi
Tags: COMPUTERS / Programming Languages / Java
Publisher: O’Reilly Media
Published: 2009-05-18T16:00:00+00:00


Simplified Callback Methods

Because EJB3 session beans do not implement specific EJB framework components (e.g., javax.ejb.SessionBean), you are no longer required to override the annoying and rarely used callback methods (i.e., ejbActivate(), ejbPassivate(), ejbRemove(), and setSessionContext()). Instead, you can use corresponding annotations to annotate any method on the bean to be invoked for the specific callback desired. For stateless session beans and message-driven beans, the lifecycle callback annotations available are @PostConstruct and @PreDestroy. For stateful session beans, the lifecycle callback annotations available are @PostConstruct, @PreDestroy, @PostActivate, and @PrePassivate. You can apply these lifecycle callback annotations to any business method in the bean.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.