• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

MessageDrivenBean Listener Interface

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Message Driven bean listener interface may define more than one message listener method. The resource adapter will determine which method will be invoked

So, In a typical development environment, The MDB has to define all the methods that are required by Message Listener interface (atleast provide empty implementation for an unwanted message listener method), and the resource adapter will decide on which method to choose?
 
Nandhini Sridharan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I certainly understand that the same question has been asked and replied in different way by Himai and some other person already.. in this thread http://www.coderanch.com/t/644912/java-EJB-SCBCD/certification/message-driven-bean-listener-interface

But my question context is little different, I certainly understand that there are many message listeners based on messaging types. If the message listener interface (Like MessageListener interface imposes one method onMessage()), has many methods (like in POJI), MDB has to implement all those methods and the resource adapter will pick up one thats needed?
 
Creator of Enthuware JWS+ V6
Posts: 3285
296
Android Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

MDB has to implement all those methods and the resource adapter will pick up one thats needed?


Yes. (the resource adapter will get that from the resource adapter's configuration: the activation specification, which is provided per message listener type.)
 
Nandhini Sridharan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!