Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 86112 invoked from network); 30 Sep 2008 19:29:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2008 19:29:08 -0000 Received: (qmail 77240 invoked by uid 500); 30 Sep 2008 19:29:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 77218 invoked by uid 500); 30 Sep 2008 19:29:06 -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 77207 invoked by uid 99); 30 Sep 2008 19:29:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 12:29:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andresr@corp.moniker.com designates 66.232.8.193 as permitted sender) Received: from [66.232.8.193] (HELO outboundmx.flt1.oversee.net) (66.232.8.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 19:28:02 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Redelivering messages inconsistency Date: Tue, 30 Sep 2008 15:29:25 -0400 Message-ID: <886461EE661A1E45BAA97AF28FAA85DBD3151E@barbados.corp.oversee.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Redelivering messages inconsistency Thread-Index: AckZTWGftIsjk2s6Rc2qiATA7Szp4QBJAW2wAjBHymA= References: <886461EE661A1E45BAA97AF28FAA85DBC98BC1@barbados.corp.oversee.net> <786B86B0-F568-4B86-A1E3-A374DFB649ED@gmail.com> <886461EE661A1E45BAA97AF28FAA85DBC98E89@barbados.corp.oversee.net> From: "Andres Rangel" To: X-Virus-Checked: Checked by ClamAV on apache.org I found the issue. The time of the client machine was off by one hour to the server(one running the jms server). When I updated the ttl to a very big number (50 hrs), the messages were picked up correctly. Why would the jms client set a timestamp local to the client and not local to the jms server?? Is this a bug? -- Andres Rangel Sw Engineer Moniker.com -----Original Message----- From: Andres Rangel [mailto:andresr@corp.moniker.com]=20 Sent: Friday, September 19, 2008 12:10 PM To: users@activemq.apache.org Subject: RE: Redelivering messages inconsistency Hi rob, thanks for the reply. >>. I'm not certain if these are application properties (yours) or ActiveMQ ones (ours) without looking at an example. Are you using message listeners/selectors? I am using message listeners.=20 On the onMessage(Message message) method I just: validateMessage(message); TextMessage mesg =3D (TextMessage) message; ... Obtain where to send Destination dest =3D getNewDestination(mesg.getText()); sender.send(dest,mesg,DeliveryMode.NON_PERSISTENT, javax.jms.Message.DEFAULT_PRIORITY, 600000); My work around was to clone the message and send the cloned msg instead. >> but if you submit a small test case - we can see if we can find the route cause, too. I can't replicate it now. But if I am able to replicate it, then I will post a small test case to learn wath is the problems Thanks again -- Andres Rangel Sw Engineer Moniker.com -----Original Message----- From: Rob Davies [mailto:rajdavies@gmail.com]=20 Sent: Thursday, September 18, 2008 1:13 AM To: users@activemq.apache.org Subject: Re: Redelivering messages inconsistency Hi Andres, what you are experiencing is a classic 'timing issue' - it seems that =20 there are some properties on the original message that are being =20 overwritten when you send it again. I'm not certain if these are =20 application properties (yours) or ActiveMQ ones (ours) without looking =20 at an example. There is definitely a problem there - are you using =20 message listeners/selectors? I would suggest you keep doing the copy of the message for your =20 production system - but if you submit a small test case - we can see =20 if we can find the route cause, too. cheers, Rob Rob Davies http://rajdavies.blogspot.com/ On 17 Sep 2008, at 20:41, Andres Rangel wrote: > Hi We have been working on with ActiveMQ on a custom content based > router. > > We first try to use Camel, but since the routes changed very often =20 > (the > routing instructions) then we decided to implement it using standard =20 > jms > code ,and deploying it in an embedded broker. > > > > > > The Content Based Router does the following: reads from a channel, and > depending on the message it redelivers it to another channel. > > > > Everything was working fine in my machine, and when we deployed to a > staging server, we encountered some problems. > > The problem is in essence the following: the message gets delivered to > the corresponding channel by the content based Router, but our client > applications (the ones listening to these channels) cannot read those > messages, even though we can see the messages in the queues (using the > admin web console). > > > > After much reading, I decided to "clone the message" that is copy the > incoming message in the content router, and send the new message. > > And somehow it resolved the problem. > > > > Today, I rolled back the code, to replicate the issue and could not > replicated. Strangely the application worked and the clients were > reading the messages. > > > > I don't know what is happening. > > > > I am really concerned that this problem may occur again in production > and we will not be able to correct it, since we have not identified =20 > the > source of the problem. > > > > > > Is there a problem for ActiveMQ if I redeliver a message? Or should I > always clone it and send it again? > > > > Thanks, > > > > > > > > > > -- > > Andres Rangel > > Sw Engineer > > Moniker.com > > >