This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Calling MDB from Session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Calling MDB from Session beans" Watch "Calling MDB from Session beans" New topic
Author

Calling MDB from Session beans

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Hello mates

Please confirm my understandings

It is not possible to call a Message Driven Bean from a Session Bean as MDBs are called asynchronously by the container.


"Know where to find the solution and how to use it - that's the secret of success."
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
True.

You just send a message to a Queue which the MDB will pick up for you. There is no direct relationship between the Session Bean and the MDB.


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling MDB from Session beans