• 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

message driven bean listener interface

 
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On p.28 of Frits notes,

a message driven bean listener interface may define more than one message listener method....


But, javax.JMS.MessageListener interface only has one onMessage() method. How can MDB define more than one message listener method?
 
Himai Minh
Bartender
Posts: 2418
13
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me answer my own question, according to a previous post a few years ago, someone said MDB implements javax.JMS.message listener usually.But MDB can also implents other interfaces from other messaging API. That is why there is such a quote

a message driven bean listener interface may define more than one message listener method
...

 
Himai Minh
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The previous post is here https://coderanch.com/t/163666/java-EJB-SCBCD/certification/understand-multiple-message-listener-method
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Himai,

This thread looks like a nice example of solving your own problem, but you didn't only solve it, you also linked the correct answer by using the search facility of this site. I am sure it will help more people in the future and that is what Coderanch is about: don't be afraid to post a question, and share your answer when you solve the question!

Great example of how to use this site, you deserve a Cow!

Regards,
Frits
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic