connection.start();
// Send the update to the broker
Queue adminQueue = session.createQueue(MessageType.JMQ_ADMIN_DEST);
MessageProducer sender = session.createProducer(adminQueue);
ObjectMessage updateMessage = session.createObjectMessage();
updateMessage.setJMSReplyTo(replyQueue);
updateMessage.setIntProperty(MessageType.JMQ_MESSAGE_TYPE, MessageType.CHANGE_CLUSTER_MASTER_BROKER);
updateMessage.setStringProperty(MessageType.JMQ_CLUSTER_OLD_MASTER_BROKER, oldMasterBroker);
updateMessage.setStringProperty(MessageType.JMQ_CLUSTER_NEW_MASTER_BROKER, newMasterBroker);
updateMessage.setBooleanProperty(MessageType.JMQ_JMSRA_MANAGED_BROKER, true);