The conf/contex.xml is within the Tomcat directory. When you install
Tomcat, You will find 
This file in the location 
Tomcat/conf/context.xml. When you have web applications which have to
use  active mq broker, you can use context.xml for defining JNDI
resources for  Active MQ Connection Factory ,Topics. In this scenario,
you will have an embedded broker.

 You can define the durable subscribers in the code itself as follows 

 The code that creates the Connection can specify the ClientID 
> before calling start(); 
> 
>  Ictx = new javax.naming.InitialContext(); 
> envContext = (Context)Ictx.lookup("java:comp/env"); 
> //lookup the connection factory 
> javax.jms.TopicConnectionFactory factory = 
>
(javax.jms.TopicConnectionFactory)envContext.lookup("jms/ConnectionFacto

> ry"); 
> HerbieConnection = factory.createTopicConnection(); 
> HerbieConnection.setClientID("CMD"); 
> HerbieConnection.start(); 



-----Original Message-----
From: wallace [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 10:40 AM
To: users@activemq.apache.org
Subject: Re: durable subscriptions


Where can I find the conf/context.xml? I only see activemq.xml in conf.

Thanks,
-Wallace
--
View this message in context:
http://www.nabble.com/Re%3A-durable-subscriptions-tf3162851s2354.html#a1
0185868
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to