the useEmbeddedBroker property not needed anymore.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-20 18:06:28 +00:00
parent 8032ef40be
commit ac8739860f
12 changed files with 3 additions and 25 deletions

View File

@ -315,6 +315,7 @@
<exclude>**/QueueConsumerCloseAndReconnectTest.*</exclude> <exclude>**/QueueConsumerCloseAndReconnectTest.*</exclude>
<exclude>**/ChangeSessionDeliveryModeTest.*</exclude> <exclude>**/ChangeSessionDeliveryModeTest.*</exclude>
<exclude>**/DeadLetterTest.*</exclude> <exclude>**/DeadLetterTest.*</exclude>
<exclude>**/TwoMulticastDiscoveryBrokerTopicSendReceiveTest.*</exclude>
<!-- HTTP not yet implemented --> <!-- HTTP not yet implemented -->
<exclude>**/TwoBrokerTopicSendReceiveUsingHttpTest.*</exclude> <exclude>**/TwoBrokerTopicSendReceiveUsingHttpTest.*</exclude>

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;
} }

View File

@ -40,7 +40,6 @@ public class BrokerXmlConfigFromJNDITest extends JmsTopicSendReceiveWithTwoConne
// on the classpath instead // on the classpath instead
Hashtable properties = new Hashtable(); Hashtable properties = new Hashtable();
properties.put("java.naming.factory.initial", "org.activemq.jndi.ActiveMQInitialContextFactory"); properties.put("java.naming.factory.initial", "org.activemq.jndi.ActiveMQInitialContextFactory");
properties.put("useEmbeddedBroker", Boolean.TRUE);
// configure the embedded broker using an XML config file // configure the embedded broker using an XML config file
// which is either a URL or a resource on the classpath // which is either a URL or a resource on the classpath

View File

@ -32,7 +32,6 @@ public class BrokerXmlConfigTest extends JmsTopicSendReceiveWithTwoConnectionsTe
// configure the connection factory using // configure the connection factory using
// normal Java Bean property methods // normal Java Bean property methods
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
connectionFactory.setUseEmbeddedBroker(true);
// configure the embedded broker using an XML config file // configure the embedded broker using an XML config file
// which is either a URL or a resource on the classpath // which is either a URL or a resource on the classpath

View File

@ -37,7 +37,6 @@ public class SubscribeClosePublishThenConsumeTest extends TestSupport {
public void testDurableTopic() throws Exception { public void testDurableTopic() throws Exception {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://locahost"); ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://locahost");
connectionFactory.setUseEmbeddedBroker(true);
String topicName = "TestTopic"; String topicName = "TestTopic";
String clientID = getName(); String clientID = getName();

View File

@ -64,7 +64,6 @@ public final class TransactionRollbackOrderTest extends TestCase {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false"); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
factory.setUseEmbeddedBroker(true);
connection = factory.createConnection(); connection = factory.createConnection();
queue = new ActiveMQQueue(getClass().getName() + "." + getName()); queue = new ActiveMQQueue(getClass().getName() + "." + getName());

View File

@ -54,8 +54,6 @@ public final class TransactionTest extends TestCase {
public void testTransaction() throws Exception { public void testTransaction() throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost"); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost");
factory.setUseEmbeddedBroker(true);
connection = factory.createConnection(); connection = factory.createConnection();
queue = new ActiveMQQueue(getClass().getName() + "." + getName()); queue = new ActiveMQQueue(getClass().getName() + "." + getName());

View File

@ -68,7 +68,6 @@ public class TwoBrokerTopicSendReceiveTest extends JmsTopicSendReceiveWithTwoCon
BrokerService broker = brokerFactory.getBroker(); BrokerService broker = brokerFactory.getBroker();
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(((TransportConnector)broker.getTransportConnectors().get(0)).getConnectUri()); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(((TransportConnector)broker.getTransportConnectors().get(0)).getConnectUri());
factory.setUseEmbeddedBroker(false);
return factory; return factory;

View File

@ -39,7 +39,6 @@ public class TwoBrokerTopicSendReceiveUsingJavaConfigurationTest extends TwoBrok
receiveBroker.start(); receiveBroker.start();
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:62002"); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:62002");
factory.setUseEmbeddedBroker(false);
return factory; return factory;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@ -56,7 +55,6 @@ public class TwoBrokerTopicSendReceiveUsingJavaConfigurationTest extends TwoBrok
sendBroker.start(); sendBroker.start();
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:62001"); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:62001");
factory.setUseEmbeddedBroker(false);
return factory; return factory;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -65,7 +65,6 @@ public class TwoBrokerTopicSendReceiveUsingTcpTest extends TwoBrokerTopicSendRec
protected ActiveMQConnectionFactory createReceiverConnectionFactory() throws JMSException { protected ActiveMQConnectionFactory createReceiverConnectionFactory() throws JMSException {
try { try {
ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector)receiverBroker.getTransportConnectors().get(0)).getConnectUri()); ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector)receiverBroker.getTransportConnectors().get(0)).getConnectUri());
fac.setUseEmbeddedBroker(false);
return fac; return fac;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@ -76,7 +75,6 @@ public class TwoBrokerTopicSendReceiveUsingTcpTest extends TwoBrokerTopicSendRec
protected ActiveMQConnectionFactory createSenderConnectionFactory() throws JMSException { protected ActiveMQConnectionFactory createSenderConnectionFactory() throws JMSException {
try { try {
ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector)senderBroker.getTransportConnectors().get(0)).getConnectUri()); ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector)senderBroker.getTransportConnectors().get(0)).getConnectUri());
fac.setUseEmbeddedBroker(false);
return fac; return fac;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -8,7 +8,7 @@
</transportConnectors> </transportConnectors>
<networkConnectors> <networkConnectors>
<networkConnector uri="static:discovery:(multicast://default)"/> <networkConnector uri="multicast://default"/>
</networkConnectors> </networkConnectors>
<persistenceAdapter> <persistenceAdapter>

View File

@ -7,7 +7,7 @@
</transportConnectors> </transportConnectors>
<networkConnectors> <networkConnectors>
<networkConnector uri="static:discovery:(multicast://default)"/> <networkConnector uri="multicast://default"/>
</networkConnectors> </networkConnectors>
<persistenceAdapter> <persistenceAdapter>