Hi,
I am running into problems configuring the jms clustering of Geoserver.
Here is the background:
I have 4 virtualboxes, each running a Geoserver 2.7.1 with the jms-cluster extension. I would like to keep the embedded broker in a matter of simpler installation. Also I would like to preserve this kind of peer to peer network because it supports easily the add or removal of node and because clients, do not have to know the broker network config.
However, my network admin announced me multicast will not be allowed in production environment. So as I know a priori the ip addresses of all the geoserver instances, I would like to change the multicast to a set of static ip setting the java property ‘activemq.transportConnectors.server.discoveryURI’ to ‘static:(host1,host2,etc.)’.
But I got a NullPointerException from activemq. I even tried to upgrade to latest version of activemq jars (as suggested by the fix - issues.apache.org/jira/browse/AMQ-5442) but it does the same: geoserver do not bootstrap. Here the top of the stacktrace:
21 Jul 10:26:04 ERROR [cluster.impl] - java.lang.NullPointerException at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent.start(Simple DiscoveryAgent.java:92) at org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:253) at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.j ava:2593) at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2 506) at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:710)
Then I have disabled the embedded broker and install an external one (latest version) for each Geoserver VMs. Brokers can see each other and exchange messages. If I create a style from one Geoserver, the jms messages are sent to the other broker in the good topic. But the other geoserver does not retrieve the messages from its local broker… so the style is not imported…
Here is my configuration:
- /etc/default/activemq pastebin.com/XARMtzQF
- activemq.xml pastebin.com/PTkpUhjP
- cluster.properties pastebin.com/CDKPKG2J.
The activemq version was 5.11.1 and I got the same results the 5.9.0.
Can I have some hints to configure my geoservers with the embedded broker without multicast? Or, at least, hints for an external broker without mutilcast?
Regards,
Rot.