Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 48636 invoked from network); 10 Oct 2008 18:37:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2008 18:37:10 -0000 Received: (qmail 34748 invoked by uid 500); 10 Oct 2008 18:37:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 34360 invoked by uid 500); 10 Oct 2008 18:37:08 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 34349 invoked by uid 99); 10 Oct 2008 18:37:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 11:37:08 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 18:36:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KoMqr-0003sO-Fv for users@activemq.apache.org; Fri, 10 Oct 2008 11:36:37 -0700 Message-ID: <19923737.post@talk.nabble.com> Date: Fri, 10 Oct 2008 11:36:37 -0700 (PDT) From: Hans Bausewein To: users@activemq.apache.org Subject: Re: Define ServerUrl externally for ActiveMQ Resource Adapter In-Reply-To: <19915104.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hansb@comerwell.xs4all.nl References: <19915104.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Fush wrote: > > Hi! > I have deployed the activemq-rar-5.1.0.rar to my Jboss server. But I don't > like the fact that ServerUrl is defined in the ra.xml inside the rar. I > would like to set the value of this property (ie the url itself) in a more > accessible place, for example in a properties file in the jboss conf > directory. Or in the ejb-jar.xml for the message driven bean that uses the > adapter. Is there a way to do this? > This one is much more flexible: https://jmsjca.dev.java.net/ https://jmsjca.dev.java.net/source/browse/*checkout*/jmsjca/jmsjca/unifiedjms/src/userdoc/sun-jms-adapter-readme.html "dynamic" connection factory: the application code in an EJB can specify the URL to a different JMS server in the username (createConnection(username, password)) so that it can connect to an arbitrary JMS server, rather than being limited to the ones bound in JNDI. Not sure whether it will work with ActiveMQ. I want to try it, soon, probably by adding some configuration classes Hans -- View this message in context: http://www.nabble.com/Define-ServerUrl-externally-for-ActiveMQ-Resource-Adapter-tp19915104p19923737.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.