Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF7A87954 for ; Wed, 28 Sep 2011 22:34:01 +0000 (UTC) Received: (qmail 61558 invoked by uid 500); 28 Sep 2011 22:34:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 61532 invoked by uid 500); 28 Sep 2011 22:34:01 -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 61521 invoked by uid 99); 28 Sep 2011 22:34:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 22:34:01 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 22:33:53 +0000 Received: by vws13 with SMTP id 13so9600328vws.2 for ; Wed, 28 Sep 2011 15:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=Rc5b1/CyZc490pEDBpl5IdwE5ZW+jSspmbbvV17Yd1U=; b=hVfjHhATB3fVPHj1X0YGKOGxYVeJPf+YLlFPMAfmv01AVlTEHMMsUfUOFLyzUX1Lid ICUkqt5BqFByfNdQ9dy6PWUs9rQPDl8gnegYBF4tzK2Spm0HrDtVRzuS4xHkNemfiXyk MgSpyx0rcVbglwXnXYJPCkUB0Z8bdcIJrCqSc= Received: by 10.52.74.225 with SMTP id x1mr9454415vdv.490.1317249212750; Wed, 28 Sep 2011 15:33:32 -0700 (PDT) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id be17sm200892vdc.15.2011.09.28.15.33.30 (version=SSLv3 cipher=OTHER); Wed, 28 Sep 2011 15:33:30 -0700 (PDT) Subject: Re: Understanding basic config From: Timothy Bish To: users@activemq.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 28 Sep 2011 18:33:29 -0400 Message-ID: <1317249209.2856.11.camel@OfficePC> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 2011-09-28 at 14:05 -0700, Mohit Anchlia wrote: > I have this config. Trying to understand few things: > > 1. what's the different between uri="tcp://localhost:0" and > brokerURL="vm://localhost" ? > 2. In point 1 why are both not tcp? > 3. what is :0? That doesn't look like a port to me. Is this specifial > for embedded broker? > > > > > > > > > > > physicalName="org.apache.activemq.spring.Test.spring.embedded"/> > > > Have a look at the Version 5 Transports page for info on the various transports. http://activemq.apache.org/configuring-version-5-transports.html For the TCP transport setting the port to zero means that you want the broker to pick an open TCP port. Normally you wouldn't do this in the configuration since will change every time you start the broker, this is more useful for unit tests where you want to ensure you get an open port. Regards -- Tim Bish ------------ FuseSource Email: tim.bish@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/