aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes How to use MessageDrivenBean Interface without implementing javax.ejb.MessageDriven-Bean interface. 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 "How to use MessageDrivenBean Interface without implementing javax.ejb.MessageDriven-Bean interface." Watch "How to use MessageDrivenBean Interface without implementing javax.ejb.MessageDriven-Bean interface." New topic
Author

How to use MessageDrivenBean Interface without implementing javax.ejb.MessageDriven-Bean interface.

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Source:EJB 3.1 Specification

5.4.6 The Optional MessageDrivenBean Interface


As per the specification,
"In EJB 3.x, the functionality previously provided by the MessageDriven-Bean interface is available to the bean class through selective use of dependency injection (of the
MessageDrivenContext) and optional life-cycle callback methods.
"

Can someone please provide a example showing

A.Injecting MessageDriven-Bean interface through DI
B.Using MessageDriven-Bean interface using optional lifecycle callback methods.


OCPJP 6.0 93%
OCPJWCD 5.0 98%
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1716
    
  25

A)

and
B)

Regards,
Frits
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Thanks Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use MessageDrivenBean Interface without implementing javax.ejb.MessageDriven-Bean interface.