Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

message driven bean listener interface

 
Ranch Hand
Posts: 1742
12
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 1742
12
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 1742
12
 
Creator of Enthuware JWS+ V6
Posts: 3289
296
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!