git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646205 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 07:11:08 +00:00
parent 83dd5d4057
commit 3f98639235
3 changed files with 9 additions and 4 deletions

View File

@ -59,7 +59,8 @@ import org.apache.activemq.util.URISupport.CompositeData;
*/
public class ActiveMQConnectionFactory extends JNDIBaseStorable implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, StatsCapable, Cloneable {
public static final String DEFAULT_BROKER_URL = "tcp://localhost:61616";
public static final String DEFAULT_BROKER_BIND_URL = "tcp://localhost:61616";
public static final String DEFAULT_BROKER_URL = "failover://"+DEFAULT_BROKER_BIND_URL;
public static final String DEFAULT_USER = null;
public static final String DEFAULT_PASSWORD = null;
public static final int DEFAULT_PRODUCER_WINDOW_SIZE = 0;

View File

@ -45,7 +45,7 @@ import org.apache.activemq.util.IdGenerator;
public class ReliableReconnectTest extends TestSupport {
protected static final int MESSAGE_COUNT = 100;
protected static final String DEFAULT_BROKER_URL = ActiveMQConnectionFactory.DEFAULT_BROKER_URL;
protected static final String DEFAULT_BROKER_URL = ActiveMQConnectionFactory.DEFAULT_BROKER_BIND_URL;
private static final int RECEIVE_TIMEOUT = 10000;
protected int deliveryMode = DeliveryMode.PERSISTENT;
@ -78,8 +78,7 @@ public class ReliableReconnectTest extends TestSupport {
}
public ActiveMQConnectionFactory getConnectionFactory() throws Exception {
String url = "failover://" + DEFAULT_BROKER_URL;
return new ActiveMQConnectionFactory(url);
return new ActiveMQConnectionFactory();
}
protected void startBroker(boolean deleteOnStart) throws JMSException {

View File

@ -32,4 +32,9 @@ public class TwoMulticastDiscoveryBrokerTopicSendReceiveTest extends TwoBrokerTo
protected ActiveMQConnectionFactory createSenderConnectionFactory() throws JMSException {
return createConnectionFactory("org/apache/activemq/usecases/sender-discovery.xml", "sender", "vm://sender");
}
protected void setUp() throws Exception{
messageCount = 100000;
super.setUp();
}
}