• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MessageDrivenBean Listener Interface

 
Nandhini Sridharan
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?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • 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