wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Can MDB listen to multiple topics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can MDB listen to multiple topics" Watch "Can MDB listen to multiple topics" New topic
Author

Can MDB listen to multiple topics

Abhishek Upadhyay
Greenhorn

Joined: Dec 06, 2009
Posts: 4
HI

I have one basic doubt, can a Message Driven Bean Subscribe to more than One topic,

I am thinking of solution, where we have different kind of messages which are sent to different topics( which I can replace by Queues also).
Now, I have few MDB's for different user group, and each user group have their own choice of message type.
Can each of my MDB listen each of the topics, or Queues.
If not, the n what can be an alternate solution.

In summary, there are different kind of messages, identified by MessageType in header.
And there are few MDB's, some are interested in some type of messages, and some in other.
And architecture should be flexible enough, so that any time and MDB can start listening to new type of messages.

vk jain
Greenhorn

Joined: Oct 05, 2007
Posts: 21
You can't have a MDB subscribe to multiple Topic, vice versa is possible i.e. multiple MDB's can be subscribed to a Topic.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Kindly tell how to solve this problem?

Now i have to make 100 MDB's for accessing 100 Topics?? (hufffffff)

Thank you for replying in advance

Regards
Azrael Noor
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Ya i have to make 100 MDB's for 100 Topic.

Topic Closed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can MDB listen to multiple topics
 
Similar Threads
MDB: Determining which Queue or EJB-NAME a Message came in from...
JMS Topic Multiple Subscribers Question!!!
MDB HELP: Getting EJB-NAME or Queue used from a MDB?
Cluster related doubt for WebSphere 5.0
A question about clustering and jms