Message distribution for MDBs consumer deployed on 2 nodes in cluster

Latest response

We have two Jboss 6.4.4 EAP nodes (with hornetq) in cluster.
Many (~30) MDB subscribers (deployed on both nodes ) are subscribed to one topic and currently messages sent to that topic are consumed by MDB on both nodes.
What we have to do (configuration , source code sample) if we want to achieve behavior where only one of those MDBs would receive any particular message sent to that topic.

Responses

The desired behavior you are describing is of a queue, not a topic. Is there some reason you are using topics in this case?

Regards,

Scott