ARTEMIS-3138 Shared Nothing Live broker shouldn't try to connect to itself
This commit is contained in:
parent
a0ce3812ba
commit
03a8e20de2
|
@ -198,6 +198,11 @@ public class ClusterController implements ActiveMQComponent {
|
||||||
//this is used for replication so need to use the server packet decoder
|
//this is used for replication so need to use the server packet decoder
|
||||||
serverLocator.setProtocolManagerFactory(ActiveMQServerSideProtocolManagerFactory.getInstance(serverLocator, server.getStorageManager()));
|
serverLocator.setProtocolManagerFactory(ActiveMQServerSideProtocolManagerFactory.getInstance(serverLocator, server.getStorageManager()));
|
||||||
serverLocator.setThreadPools(server.getThreadPool(), server.getScheduledPool());
|
serverLocator.setThreadPools(server.getThreadPool(), server.getScheduledPool());
|
||||||
|
SimpleString nodeID = server.getNodeID();
|
||||||
|
if (nodeID != null) {
|
||||||
|
// this is used to allow a live server to ignore it's same connector ref
|
||||||
|
serverLocator.setNodeID(nodeID.toString());
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
serverLocator.initialize();
|
serverLocator.initialize();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue