the useEmbeddedBroker property not needed anymore.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-20 21:19:28 +00:00
parent faf6633c14
commit c30a6a81c4
2 changed files with 0 additions and 32 deletions

View File

@ -52,11 +52,6 @@ public class ActiveMQVendorAdapter extends BeanVendorAdapter {
*/ */
public final static String DEFAULT_PASSWORD = "defaultPassword"; public final static String DEFAULT_PASSWORD = "defaultPassword";
/**
* Specifies whether the broker is embedded
*/
public final static String EMBEDDED_BROKER = "embeddedBroker";
public QueueConnectionFactory getQueueConnectionFactory(HashMap properties) public QueueConnectionFactory getQueueConnectionFactory(HashMap properties)
throws Exception { throws Exception {
@ -84,14 +79,10 @@ public class ActiveMQVendorAdapter extends BeanVendorAdapter {
if (jmsUrl.getPropertyValue(DEFAULT_PASSWORD) != null) { if (jmsUrl.getPropertyValue(DEFAULT_PASSWORD) != null) {
properties.put(DEFAULT_PASSWORD, jmsUrl.getPropertyValue(DEFAULT_PASSWORD)); properties.put(DEFAULT_PASSWORD, jmsUrl.getPropertyValue(DEFAULT_PASSWORD));
} }
if (jmsUrl.getPropertyValue(EMBEDDED_BROKER) != null) {
properties.put(EMBEDDED_BROKER, jmsUrl.getPropertyValue(EMBEDDED_BROKER));
}
} }
public boolean isMatchingConnectionFactory(ConnectionFactory connectionFactory, JMSURLHelper jmsURL, HashMap properties) { public boolean isMatchingConnectionFactory(ConnectionFactory connectionFactory, JMSURLHelper jmsURL, HashMap properties) {
String brokerURL = null; String brokerURL = null;
boolean embeddedBroker = false;
if (connectionFactory instanceof ActiveMQConnectionFactory) { if (connectionFactory instanceof ActiveMQConnectionFactory) {
ActiveMQConnectionFactory amqConnectionFactory = ActiveMQConnectionFactory amqConnectionFactory =
@ -99,7 +90,6 @@ public class ActiveMQVendorAdapter extends BeanVendorAdapter {
// get existing queue connection factory properties // get existing queue connection factory properties
brokerURL = amqConnectionFactory.getBrokerURL(); brokerURL = amqConnectionFactory.getBrokerURL();
embeddedBroker = amqConnectionFactory.isUseEmbeddedBroker();
} }
// compare broker url // compare broker url
@ -107,16 +97,6 @@ public class ActiveMQVendorAdapter extends BeanVendorAdapter {
if (!brokerURL.equals(propertyBrokerURL)) { if (!brokerURL.equals(propertyBrokerURL)) {
return false; return false;
} }
// compare load balancing flag
String tmpEmbeddedBroker = (String) properties.get(EMBEDDED_BROKER);
boolean propertyEmbeddedBroker = false;
if (tmpEmbeddedBroker != null) {
propertyEmbeddedBroker = Boolean.valueOf(tmpEmbeddedBroker).booleanValue();
}
if (embeddedBroker != propertyEmbeddedBroker) {
return false;
}
return true; return true;
} }
} }

View File

@ -42,7 +42,6 @@ public class BenchmarkSupport {
protected int connectionCount = 1; protected int connectionCount = 1;
protected int batch = 1000; protected int batch = 1000;
protected Destination destination; protected Destination destination;
protected boolean embeddedBroker = false;
private boolean topic = true; private boolean topic = true;
private boolean durable = false; private boolean durable = false;
@ -112,14 +111,6 @@ public class BenchmarkSupport {
this.durable = durable; this.durable = durable;
} }
public boolean isEmbeddedBroker() {
return embeddedBroker;
}
public void setEmbeddedBroker(boolean embeddedBroker) {
this.embeddedBroker = embeddedBroker;
}
public int getConnectionCount() { public int getConnectionCount() {
return connectionCount; return connectionCount;
} }
@ -148,9 +139,6 @@ public class BenchmarkSupport {
protected ActiveMQConnectionFactory createFactory() { protected ActiveMQConnectionFactory createFactory() {
ActiveMQConnectionFactory answer = new ActiveMQConnectionFactory(getUrl()); ActiveMQConnectionFactory answer = new ActiveMQConnectionFactory(getUrl());
if (embeddedBroker) {
answer.setUseEmbeddedBroker(true);
}
return answer; return answer;
} }