From 5a58837f8e629c3cc190fb76c34b9659309260f3 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Fri, 6 Oct 2006 00:31:01 +0000 Subject: [PATCH] Updated test to the new way of specifying the broker xml file in the JNDI properties. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@453440 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/config/BrokerXmlConfigFromJNDITest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java b/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java index 2b98cb61b8..e9d334d32b 100755 --- a/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java +++ b/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java @@ -45,10 +45,7 @@ public class BrokerXmlConfigFromJNDITest extends JmsTopicSendReceiveWithTwoConne // which is either a URL or a resource on the classpath File f = new File(System.getProperty("basedir", ".")); - f = new File(f, "src/sample-conf/default.xml"); - - properties.put("brokerXmlConfig", "file:"+f.getPath()); - properties.put(Context.PROVIDER_URL, "vm://localhost"); + properties.put(Context.PROVIDER_URL, "vm://localhost?brokerConfig=xbean:file:"+f+"/src/test/resources/activemq.xml"); InitialContext context = new InitialContext(properties); ActiveMQConnectionFactory connectionFactory = (ActiveMQConnectionFactory) context.lookup("ConnectionFactory");