wood burning stoves 2.0*
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
Author

Doubt on MDB SCBCD 5

Thalys de Aguiar Gomes
Greenhorn

Joined: Mar 31, 2008
Posts: 15

http://java.boot.by/scbcd5-guide/ch04s02.html

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 ...


Grateful


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

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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: http://www.slideshare.net/krizsan
Thalys de Aguiar Gomes
Greenhorn

Joined: Mar 31, 2008
Posts: 15

I really appreciate your help... thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on MDB SCBCD 5
 
Similar Threads
Resouce Adapters for JAIN-SIP and J2EE
Session bean and TCP communication
what is RAR file
Legacy conectivity
Adapter