Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

 
Creator of Enthuware JWS+ V6
Bartender
Posts: 3108
256
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A)

and
B)

Regards,
Frits
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!