activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r453440 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
Date Fri, 06 Oct 2006 00:31:02 GMT
Author: chirino
Date: Thu Oct  5 17:31:01 2006
New Revision: 453440

URL: http://svn.apache.org/viewvc?view=rev&rev=453440
Log:
Updated test to the new way of specifying the broker xml file in the JNDI properties.

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java?view=diff&rev=453440&r1=453439&r2=453440
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
Thu Oct  5 17:31:01 2006
@@ -45,10 +45,7 @@
         // 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");



Mime
View raw message