I'm trying to set up a Wildfly 11 cluster but I'm not able to make it work. Basically, I have 2 instances of Wildfly with one instance having port-offset=2 running on my local machine. Here are the publisher and MDB:
@JMSDestinationDefinitions(value = { @JMSDestinationDefinition(name = "java:/topic/CLUSTEREVENTTOPIC", interfaceName = "javax.jms.Topic", destinationName = "ClusterEventTopic") })
@Stateless
public class ClusterEventPublisher implements Serializable {
MDB
@MessageDriven(name = "ClusterEventMonitor", activationConfig = { @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "topic/CLUSTEREVENTTOPIC"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
public class ClusterEventMonitor implements MessageListener {
Note that I'm able to see this topic created on Wildfly, but when I publish a message on the topic. It's only read by the node that sends the message.
For example: node1 sends an eventDto as the message, node1 will receive the message but not node2.
Note that I'm using standalone-full-ha.xml configuration. I just added the following line in ActiveMQ module:
<cluster password="${jboss.messaging.cluster.password:opencell}"/>
Full config is downloadable from, note that the second instance has exactly the same configuration with the only difference being the port-offset value:
https://www.dropbox.com/s/0ttyb05dx7cps21/standalone-full-ha-test.xml
I'm on debug mode and sure that the message doesn't reach node2. Any idea?