Remote MDB consumers count in cluster

Solution Unverified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4.6

Issue

  • MDB consuming remote from cluster.
  • Connections get established during MDB start-up but do not respect a later change of cluster topology.

Resolution

  • Apply JBoss EAP 6.4 Cumulative Patch (CP) 6 or later
  • Add the following annotations to the MDBs:
    • @ActivationConfigProperty(propertyName = "rebalanceConnections", propertyValue = "true")
    • @ActivationConfigProperty(propertyName = "hA", propertyValue = "true")

Root Cause

Diagnostic Steps

  • start just one server of queue(s) providing cluster.
  • start client server containing MDB consuming messages remotely.
  • check consumer count on queue the MDB is connected to using CLI or JMX
  • start another cluster node
  • check consumer count on queue again and you find that a rebalance didn't take place.
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.