File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Calling MDB from Session beans" Watch "Calling MDB from Session beans" New topic

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

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:
subject: Calling MDB from Session beans
It's not a secret anymore!