Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between a Message Listener and a Message Consumer  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a MEssage Driven Bean to act as a Listener to the Queue .

This works fine gets fired upon whenever any message arrives to the Queue .

Is this sufficient ?? Or do i need to still write a Message Consumer to recieve the mEssages from the Queue .

What i mean to ask is what is the difference between a Message Listener and a Message Consumer .


PLease share your ideas .
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, a MessageListener is sufficient. A MessageConsumer can do more - such as synchronous operations. You'd know you needed it because MessageListener wouldn't meet your needs. If you don't have a problem, you are good with MessageListener.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that was useful .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!