Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling MDB from Session beans

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic