This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MessageListener, P2P for JMS  RSS feed

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am doing a P2P MessageReceiver (Not using MDB), how can the MessageReceiver be informed of any message that is put into the queue? Do I need to implement MessageListener interface for that?
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam,

Message consumer can receive messages synchronously by explicitly calling the consumer�s receive() method or asynchronously by registering a callback object that implements MessageListner interface. If you just need to be notified when a message arrives, then you'll mostly need an asynchronous listener.
Regards.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!