Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 29541 invoked from network); 10 Aug 2010 14:56:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 14:56:59 -0000 Received: (qmail 27136 invoked by uid 500); 10 Aug 2010 14:56:59 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 26897 invoked by uid 500); 10 Aug 2010 14:56:57 -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 26889 invoked by uid 99); 10 Aug 2010 14:56:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 14:56:56 +0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pdcvgmh@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 14:56:50 +0000 Received: by wwb31 with SMTP id 31so217204wwb.14 for ; Tue, 10 Aug 2010 07:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eqkwGIJlHLo9ff/xTzYWkV+FXD/SLD8HYVn7vo6OpSo=; b=Q/SwckhsLsLEYRPnCqqsRqmMPnANcHDIvFolpxfvMUDsSb3pzMCgBtunk9KyfS4qfv Yueb2C90rYRgXoiwOUPBelVF0HmfUTeIZW+PfuavyowT4mI8Xw02xlSvEMT536y9LKJx nQPoMcJkC9/7P3rtZH5ObVUTo322S05YCPBHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ScKLpgE1Qoylr57o5N9y7Xoj/6ARQIff/8BB5FW+qz7Zf+jautYlvokhPKjWRog1Wt HDP3t1gIPFHbxTUpbV3KePkM24CPp7fcfuJA2p433ACMoQWNsKzsF9jpS0wBuSCkPYQo 9HFmTJPCZ5O2Arv5tJjhjZtwQzjn2BXoM53Xo= MIME-Version: 1.0 Received: by 10.216.1.208 with SMTP id 58mr15274169wed.22.1281452189043; Tue, 10 Aug 2010 07:56:29 -0700 (PDT) Received: by 10.216.153.67 with HTTP; Tue, 10 Aug 2010 07:56:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Aug 2010 11:56:28 -0300 Message-ID: Subject: Re: Problem receiving message. From: pablo caballero To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Gary, thank you very much for your response. I changed "localhost" for my specific IP address (also for 0.0.0.0) and nothing happened. I changed useJmx to true in the broker configuration to monitor the queue (via jconsole) and something strange happened: 1.- I execute the sender and the consumer apps 2.- The sender app send a message 3.- I execute jconsole and I see that EnqueueCount and DequeueCount queue's attributes both have the value 1. 4.- No activity occurs in the receiving application 5.- The sender app send another message (I had never tried to send two messages!!!!) 6.- The receiving app consume the message!!! (and EnqueueCount =3D=3D DequeueCount =3D=3D 2) The six steps above are repeated deterministically. Sorry for my bad english. Best regards On Tue, Aug 10, 2010 at 7:48 AM, Gary Tully wrote: > one thought, rather than localhost, do you need activemq to listen on > all network interfaces using the wildcard address 0.0.0.0 or a > specific IP address? > > On 9 August 2010 20:51, pablo caballero wrote: >> Background: >> >> I'm using spring + camel + activemq in boths sender and receiver. >> >> Relevant receiver spring's cfg: >> >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> >> > class=3D"org.apache.activemq.ActiveMQConnectionFactory"> >> =A0 =A0 =A0 =A0 >> >> >> > class=3D"org.apache.camel.component.jms.JmsComponent" abstract=3D"true"> >> =A0 =A0 =A0 =A0 >> >> >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> >> Relevant sender spring's cfg: >> >> > class=3D"org.apache.activemq.ActiveMQConnectionFactory"> >> =A0 =A0 =A0 =A0 >> >> >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> >> I run both apps (sender & receiver) under Tomcat >> >> The sender app send the message via a >> org.apache.camel.ProducerTemplate.sendBody call to the uri >> jmsGP:queue:someQueue. No exception or error >> >> I have a breakpoint in the server app (at the begining of someMethod >> code) but it is never reached. Nothing happens (no exception, no >> error) >> >> If I run only the receiver app I see (netstat) a LISTENING entry (on >> port 15000) and two ESTABLISHED entries (two "views" of the same >> connection: 15000 -> some random port and same random port -> 15000). >> when I run both apps no additional connection appear. >> >> I'm sure that the problem is not a ActiveMQ issue but a "layer 8" one >> (ergo "me"). Someone can kick me in the right direction? >> >> Thank you very much! >> >> Best regards >> > > > > -- > http://blog.garytully.com > > Open Source Integration > http://fusesource.com >