Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 37474 invoked from network); 30 Jul 2008 09:51:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2008 09:51:39 -0000 Received: (qmail 89935 invoked by uid 500); 30 Jul 2008 09:51:38 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 89921 invoked by uid 500); 30 Jul 2008 09:51:38 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 89909 invoked by uid 99); 30 Jul 2008 09:51:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 02:51:38 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.247.192.227] (HELO EUnet.yu) (194.247.192.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 09:50:41 +0000 Received: from [194.247.199.205] ([194.247.199.205]) by EUnet.yu (8.13.6/8.13.6) with ESMTP id m6U9ohVw019532 for ; Wed, 30 Jul 2008 11:50:48 +0200 Message-ID: <48903973.5080308@ttmsolutions.com> Date: Wed, 30 Jul 2008 11:50:43 +0200 From: Dejan Bosanac User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: dev@activemq.apache.org Subject: Re: ActiveMQ JNDI Tutorial References: <48902CBB.7030103@wso2.com> <48902DA8.5030507@ttmsolutions.com> <489031BD.2080801@wso2.com> In-Reply-To: <489031BD.2080801@wso2.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_40 X-AVAS-Spam-Score: -0.2 X-Virus-Checked: Checked by ClamAV on apache.org Hi > > (1). Is it possible to have the jndi.properties file anywhere we wish > and let the InitialContextFactory know where it is?(rather than having > it in the classpath) You can always load properties from custom file (using java.util.Properties) and initialize InitialContext with those properties. > > (2). What is the purpose of having connectionFactoryNames in > jndi.properties?. It allows us to have custom JNDI connection factory > names? > You can configure multiple connection factories and lookup the one you need, e.g. ConnectionFactory factory = ctx.lookup("factory001"); Hope this help BTW. I updated docs with the link to the source distribution (http://cwiki.apache.org/confluence/display/ACTIVEMQ/JNDI+Support) Cheers -- Dejan Bosanac http://www.ttmsolutions.com http://www.scriptinginjava.net