activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suchitha Koneru \(sukoneru\)" <sukon...@cisco.com>
Subject RE: durable subscriptions
Date Wed, 25 Apr 2007 18:14:04 GMT
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:wallace3000@yahoo.com] 
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.

Mime
View raw message