-
1. Re: Listeners on JMS topic not getting messages if not on the same wildfly 11/12 server
mnovak Apr 17, 2018 4:33 AM (in response to sreckom)Hi,
I'm suspecting that Artemis cluster did not form up. Could you check in CLI the number of (Artemis) cluster nodes? CLI command should look like:
/host=master/server=server-one/subsystem=messaging-activemq/server=default/cluster-connection=my-cluster:get-nodes()
Also do you see any warning/error messages relates to org.apache.activemq.artemis module in server.log in $JBOSS_HOME/domain/servers/server-one/log
Thanks,
Mirek
-
2. Re: Listeners on JMS topic not getting messages if not on the same wildfly 11/12 server
sreckom Apr 19, 2018 5:31 AM (in response to mnovak)Hello.
I've tried this command and the response looks like this.
[domain@localhost:9990 /] /host=master/server=server-one/subsystem=messaging-activemq/server=default/cluster-connection=my-cluster:get-nodes
{
"outcome" => "success",
"result" => {"f013bb53-3ef3-11e8-bff6-0a0027000005" => "/127.0.0.1:8230"}
}
[domain@localhost:9990 /] /host=master/server=server-two/subsystem=messaging-activemq/server=default/cluster-connection=my-cluster:get-nodes
{
"outcome" => "success",
"result" => {"ee571778-3ef3-11e8-94d4-38d5471096f8" => "/127.0.0.1:8080"}
}
The only error that I saw regarding artemis was the error about security (since this was a fresh install). I disabled the security and restarted the servers and the log is now clean. The replication of a message still doesn't work. My last test was on wildfly 12.
.
Best regards, Srecko.
-
3. Re: Listeners on JMS topic not getting messages if not on the same wildfly 11/12 server
sreckom May 4, 2018 9:42 AM (in response to mnovak)I managed to solve this. The problem was at first a bad reproducer that gave false results (connection factory wasn't found because newer version of wildfly requires java:/jboss/exported/ prefix and I didn't see this error). After solving this I discovered that if I have two wildfly servers running on the same machine, the replication works. If I had servers running on separate machines, the replication didn't work. Digging into this revealed that default configuration of jgroups uses private interface. After directing those socket bindings to public it started working. So if anyone will have similar issues, they are solved by
/socket-binding-group=full-ha-sockets/socket-binding=jgroups-udp:write-attribute(name=interface,value=public)
/socket-binding-group=full-ha-sockets/socket-binding=jgroups-tcp:write-attribute(name=interface,value=public)
/socket-binding-group=full-ha-sockets/socket-binding=jgroups-mping:write-attribute(name=interface,value=public)
Best regards, Srecko.
-
4. Re: Listeners on JMS topic not getting messages if not on the same wildfly 11/12 server
mnovak May 21, 2018 6:14 AM (in response to sreckom)Good, you figure it out :-)