• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on MDB SCBCD 5

 
Thalys de Aguiar Gomes
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Thalys de Aguiar Gomes
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really appreciate your help... thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic