mirror of https://github.com/apache/activemq.git
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:
parent
8032ef40be
commit
ac8739860f
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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());
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</transportConnectors>
|
</transportConnectors>
|
||||||
|
|
||||||
<networkConnectors>
|
<networkConnectors>
|
||||||
<networkConnector uri="static:discovery:(multicast://default)"/>
|
<networkConnector uri="multicast://default"/>
|
||||||
</networkConnectors>
|
</networkConnectors>
|
||||||
|
|
||||||
<persistenceAdapter>
|
<persistenceAdapter>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</transportConnectors>
|
</transportConnectors>
|
||||||
|
|
||||||
<networkConnectors>
|
<networkConnectors>
|
||||||
<networkConnector uri="static:discovery:(multicast://default)"/>
|
<networkConnector uri="multicast://default"/>
|
||||||
</networkConnectors>
|
</networkConnectors>
|
||||||
|
|
||||||
<persistenceAdapter>
|
<persistenceAdapter>
|
||||||
|
|
Loading…
Reference in New Issue