Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 60160 invoked from network); 30 Jul 2010 07:48:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jul 2010 07:48:15 -0000 Received: (qmail 21943 invoked by uid 500); 30 Jul 2010 07:48:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21741 invoked by uid 500); 30 Jul 2010 07:48:12 -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 21718 invoked by uid 99); 30 Jul 2010 07:48:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 07:48:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 07:48:06 +0000 Received: by ywf7 with SMTP id 7so719301ywf.2 for ; Fri, 30 Jul 2010 00:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=zn1rI4IuAUjpBIJruDyRfdLGwsB2yZsR/b/F8fWb3LA=; b=nBlKcT6icGjEtk09GzmZ7Yjq6NpkPhhr/NTM8BjWuMWDwHoZsVZ3cr07k4Hh6tmnr7 /pQ4cKIwTOL8a3fymx51hbxcnAjR3nDP8/BDSYdp4MNVUxTZuoWsdq0yb9aBU+PL+WCa zGPQ3qBT1UvGPMZl4CimKQDxpo9RGcy9XEWf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=XZ+gF5yl4S+mcjL5PzZ7eSZq++Fx/ItWz0Px28jdla1SzR8bdoWKEg6Jf4S9yrwiIm 578vfJMDemlGH0W5iAIx2NVqJjQVym2m8Nvf1AKwOWMO6oXcy2EvvDslzmytjx46qXGk 3UFYVCzmrfCKtOKejzUo6nkH0rNk+X16dwCe4= MIME-Version: 1.0 Received: by 10.90.100.9 with SMTP id x9mr1848048agb.34.1280476063945; Fri, 30 Jul 2010 00:47:43 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.42.6.194 with HTTP; Fri, 30 Jul 2010 00:47:43 -0700 (PDT) In-Reply-To: <29303545.post@talk.nabble.com> References: <29303545.post@talk.nabble.com> Date: Fri, 30 Jul 2010 09:47:43 +0200 X-Google-Sender-Auth: PnVrFcEKY9Y9tJhePuZ2ssOA1oA Message-ID: Subject: Re: Possible to define in java product independent BrokerURL/CoonectionFactory? From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You can do that by using Spring - http://activemq.apache.org/spring-support.html or JNDI - http://activemq.apache.org/jndi-support.html Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Jul 30, 2010 at 9:31 AM, BenXS wrote: > > As far as I can see the suggested way to connect to a running ActiveMQ > MessageBroker > in java POJO is something like: > > import org.apache.activemq.ActiveMQConnectionFactory; > ... > =A0ConnectionFactory connectionFactory =3D new > ActiveMQConnectionFactory("tcp://localhost:51616"); > > However this definition is not product independent. It refers to ActiveMQ= as > MessageBroker. > What if the devleopers decide to change the MessageBroker product? > > In the case above they have to rewrite the java source, > > Is there a product independent way of defining a ConnectionFactory in Jav= a > POJOs? > > Ben > -- > View this message in context: http://old.nabble.com/Possible-to-define-in= -java-product-independent-BrokerURL-CoonectionFactory--tp29303545p29303545.= html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >