Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 73866 invoked from network); 5 May 2006 08:25:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2006 08:25:39 -0000 Received: (qmail 55390 invoked by uid 500); 5 May 2006 08:25:39 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 55253 invoked by uid 500); 5 May 2006 08:25:38 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 55244 invoked by uid 99); 5 May 2006 08:25:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 01:25:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xleyba@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO nz-out-0102.google.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 01:25:36 -0700 Received: by nz-out-0102.google.com with SMTP id q3so660026nzb for ; Fri, 05 May 2006 01:25:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lvmVdyqQCrMiVCEMbwH6nYbTQWy7m0yhP0qVhta3JnmPGu/xuanHV6vyKC6A8f2e/A4evKfHkUsqNlfzg0jpL7AXu4FpuTSRGXc6ijWOETgn7DhZpPUxhqoqZFPoXKb3QIHXwLOfCg+aOt5HFjLD5mFU6v8mSddf+q3uw1qKe+4= Received: by 10.65.95.14 with SMTP id x14mr75266qbl; Fri, 05 May 2006 01:25:14 -0700 (PDT) Received: by 10.65.244.13 with HTTP; Fri, 5 May 2006 01:25:14 -0700 (PDT) Message-ID: <933f2a180605050125v49bca444h553c52c77e7a163d@mail.gmail.com> Date: Fri, 5 May 2006 10:25:14 +0200 From: "Javier Leyba" To: activemq-users@geronimo.apache.org Subject: Re: Create a broker with vm and tcp transport connectors In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4209405.post@talk.nabble.com> <4225664.post@talk.nabble.com> <4241810.post@talk.nabble.com> <4243093.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/5/06, James Strachan wrote: > > > Additionallly is there a way to programatically create the BrokerServic= e > > whilst using an xml file to configure the broker? > > Its one or the other. The XML file creates a BrokerService - or you > can create it with Java. > Is this true ? I'm creating a service with java that reads its config from a xml file !!! ---------- URI brokerURI =3D new URI("xbean:" + System.getProperty("jboss.server.config.url") + "activemq_slave.xml"); serviceSlave =3D BrokerFactory.createBroker(brokerURI); if (serviceSlave !=3D null) { serviceSlave.start(); } ------------ Am I wrong ? -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar