• Post Reply Bookmark Topic Watch Topic
  • New Topic

can MDB used for Topic listening?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is Message Driver beans are used only for Queue listening or they can be used to listen Topics also?
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, an MDB can listen to a topic.

Enterprise JavaBeans Specification, Version 2.0
15.1 Overview

A client accesses a message-driven bean through JMS by sending messages to the JMS Destination (Queue or Topic) for which the message-driven bean class is the MessageListener.


See Chapter 15 Message-driven Bean Component Contract of the specification for the gory details.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!