• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

message driven bean listener interface

 
Himai Minh
Ranch Hand
Posts: 1360
7
  • 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: 1360
7
  • 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: 1360
7
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic