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
This commit is contained in:
Hiram R. Chirino 2006-10-06 00:31:01 +00:00
parent bcca6682e0
commit 5a58837f8e
1 changed files with 1 additions and 4 deletions

View File

@ -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");