public boolean isMatchingConnectionFactory(ConnectionFactory connectionFactory, JMSURLHelper jmsURL, HashMap properties) {
String brokerURL = null;
boolean embeddedBroker = false;
if (connectionFactory instanceof ActiveMQConnectionFactory) {
ActiveMQConnectionFactory amqConnectionFactory =
(ActiveMQConnectionFactory) connectionFactory;
// get existing queue connection factory properties
brokerURL = amqConnectionFactory.getBrokerURL();
embeddedBroker = amqConnectionFactory.isUseEmbeddedBroker();
}
// compare broker url
String propertyBrokerURL = (String) properties.get(BROKER_URL);
if (!brokerURL.equals(propertyBrokerURL)) {