• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt on MDB SCBCD 5

 
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I really appreciate your help... thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic