activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suchitha Koneru \(sukoneru\)" <>
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 = 

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

-----Original Message-----
From: wallace [] 
Sent: Wednesday, April 25, 2007 10:40 AM
Subject: Re: durable subscriptions

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

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message