7 Replies Latest reply on May 6, 2010 12:27 PM by dbschofield

    unwanted MDB subscriptions to a topic

    dbschofield

      I have HornetQ 2.0 integrated with JBoss EAP 5.0.  My test app has a topic defined to which a session bean sends messages.  Asynchronously a MDB consumes the messages.  The behavior I am seeing is that the topic gets 15 subscriptions.  I believe this is the default MDB pool size so each MDB instance is creating a subscription to the topic.  When I send a message to the topic via the session bean I see the onMessage() of the MDB executed 15 times.  What I really want, is a single subscription where 15 MDB instances in a pool are consuming from that single subscription.  How is this done?