mirror of https://github.com/apache/activemq.git
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:
parent
bcca6682e0
commit
5a58837f8e
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue