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 Doubt on MDB SCBCD 5 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 "Doubt on MDB SCBCD 5" Watch "Doubt on MDB SCBCD 5" New topic

Doubt on MDB SCBCD 5

Thalys de Aguiar Gomes

Joined: Mar 31, 2008
Posts: 15

Hello staff in the penultimate paragraph of the link that says if you have more than one method onMessage the resource adapter that will determine which will then be executed ...

please ... which could explain that? what is resource adapter? or someone give example ...


SCJP 5 - 74%, SCWCD - 89%, SCBCD in progress
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Message driven beans are designed to be usable with other messaging systems, not only JMS.
When connecting to some other system that may send messages to message-driven beans, the Java Connector Architecture may be used to connect the Java EE application server with the other system.
The gizmo enabling other systems to talk, and listen to, the application server is called a resource adapter.
The JMS resource adapter only have one single onMessage method in the interface that a message-driven bean that wants to receive JMS messages need to implement.
Some other resource adapter may have more than one method in the corresponding interface. It is then up to the resource adapter to choose which method to invoke.
This is a slightly theoretical discussion, since I have never seen anything but message-driven beans listening for JMS messages - perhaps someone else has some example in store.
Best wishes!

My free books and tutorials:
Thalys de Aguiar Gomes

Joined: Mar 31, 2008
Posts: 15

I really appreciate your help... thanks
I agree. Here's the link:
subject: Doubt on MDB SCBCD 5
It's not a secret anymore!