Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 867E2D31A for ; Wed, 25 Jul 2012 22:11:01 +0000 (UTC) Received: (qmail 88197 invoked by uid 500); 25 Jul 2012 22:11:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 87990 invoked by uid 500); 25 Jul 2012 22:11:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 87928 invoked by uid 99); 25 Jul 2012 22:11:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 22:11:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 22:10:15 +0000 Received: by lahc1 with SMTP id c1so1039341lah.32 for ; Wed, 25 Jul 2012 15:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fIddhngpx7pERNSLe7/fPDQ2+Gz9fZ/0bQ2Hxw3rJI4=; b=Tw2pBvOLUwpW0I1vdvGykF7qxwetYXA/MFyc/cBZPApdahzZ7fhohYZOr6thoJb9gy A+mQkrgeoQllKSeIrdJw0N4gPEmgzZNxk/bJABFoTJNCCL5IaTwEcFaTJ2U9YataC/bF nyl9GWKJ+bz5xnAraL/tQoRCEJ07583u6lXcXJWoiy/4dKO067M+9o50snOk8CT6NW81 EkRt5/SKQqPYqh/pXoizNXfpEqfh6vm/icANTwPf7R4Aqb3iY3e9UcclEk3q9Glb1t0J 3BYMx2E1ucHkGUzPC1ZyIRUzMkhaeRy1Vf1rv5FyNEYFYtuVrEUpjyDbMIEYs+aCsrsa 3X4Q== MIME-Version: 1.0 Received: by 10.152.114.3 with SMTP id jc3mr27727350lab.11.1343254193600; Wed, 25 Jul 2012 15:09:53 -0700 (PDT) Received: by 10.114.14.1 with HTTP; Wed, 25 Jul 2012 15:09:53 -0700 (PDT) In-Reply-To: <50101D58.5030205@gmail.com> References: <50096A6F.8070903@gmail.com> <500CB1E2.3000905@gmail.com> <50101D58.5030205@gmail.com> Date: Thu, 26 Jul 2012 00:09:53 +0200 Message-ID: Subject: Re: Camel ActiveMQ consumers do not consume after restart From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=f46d04088c7f0d76f004c5aebd25 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04088c7f0d76f004c5aebd25 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I don't think this was the issue. But without to know which version of Camel and ActiveMQ do you use and how your ActiveMQ component is configured, I cannot help... Best, Christian On Wed, Jul 25, 2012 at 6:22 PM, Marco Zapletal w= rote: > For producing messages to AMQ, we are using the InOnly pattern only. > > The routes in C1 look quite easy, one is consuming from the file system > and producing to AMQ, the other one is consuming from AMQ and producing t= o > the file system. > > Within C2, we have now about 20 routes, which basically consume/produce > from/to a queue and and process messages within beans. > > Anyway, it seems that I have solved my problem now: I set the prefetch > limit to zero on the connection string and all tests have worked since th= en > (actually I thought I have tried this before by setting the prefetch in t= he > Spring config to 0 ...). Maybe this helps others in the future. > > Thanks and regards, > > Marco > > > > On 23.07.2012 04:07, Willem Jiang wrote: > >> It could be more easy for us to understand your case by looking at the >> routes you have. >> >> On Sat Jul 21 06:40:34 2012, Christian M=FCller wrote: >> >>> Which version of Camel and ActiveMQ do you use? >>> Which MEP do you use? >>> >>> Best, >>> Christian >>> >>> Sent from a mobile device >>> Am 20.07.2012 16:26 schrieb "Marco Zapletal" = : >>> >>> Hi folks, >>>> >>>> We have an application where we have two Camel contexts (C1, C2) which >>>> exchange messages via two queues (Q1, Q2). These queues are located >>>> on the >>>> same ActiveMQ broker. Thereby, the message flow goes as follows: >>>> >>>> C1 -> Q1 -> C2 >>>> C2 -> Q2 -> C1 >>>> >>>> C2 uses furthermore some "internal" queues on the AMQ broker, but I >>>> guess >>>> they are not relevant to the problem. >>>> >>>> The issue we are facing can be described as follows and happens only >>>> when >>>> C1 or C2 go down or have to be restarted >>>> >>>> - In case, no messages are produced of either C1/C2 while the other on= e >>>> restarts, everything is fine - i.e., there is no problem with consumin= g >>>> messages >>>> >>>> - In case, messages are produced of either C1/C2 and are put in the >>>> respective queue, during the absence of the other Camel application, w= e >>>> gonna face problems with consuming messages from the queues. >>>> We have especially tested this scenario by stopping C2. C1 produces >>>> messages to Q1. Then we restart C2 again and (almost) nothing happened= . >>>> >>>> - By almost I mean, that the context of C2 starts up without errors. >>>> What >>>> is also observed is that when we have 1 concurrentConsumer defined in >>>> the >>>> AMQ consumer configuration in C2, 1 message is consumed (if 3 >>>> concurrentConsumers are defined, 3 messages are consumed). Afterwards, >>>> consumption stops. >>>> >>>> - When restarting C2 again, 1 message is consumed from Q1 (in case of = 1 >>>> concurrentConsumer) >>>> >>>> - C2 exposes also two CXF services as producers of routes. Both of >>>> the two >>>> routes have one of those "internal" AMQ queues as their final >>>> destination. >>>> When we want to access their respective WSDL URL, the request hangs. >>>> >>>> - We have an admin Web application monitoring C2 via JMX. The admin >>>> application hangs due to no response from C2's JMX services (although >>>> the >>>> C2 context starts up properly according to the logs). >>>> >>>> - Nothing special can be seen in the logs. We examined the logs on DEB= UG >>>> level (on Camel as well as on AMQ side) and nothing special could be >>>> seen. >>>> >>>> - We went back to a rather base config. No transactions, no connection >>>> pools, no caching of consumers/producers. We have experimented with th= e >>>> prefetch (setting it to 1 or even 0) without success. >>>> >>>> - In order to reach proper behavior again, Q1/Q2 (and maybe even the >>>> "internal queues of C2) have to be purged. Then C2 has be to be >>>> restarted >>>> again. After this procedure, message passing is back to normal. >>>> >>>> >>>> Sorry for the long post, but I want to describe the problem as >>>> detailed as >>>> possible. Since we have been working on this now for days any help >>>> would be >>>> highly appreciated. >>>> >>>> >>>> Thanks and best regards, >>>> >>>> >>>> Marco >>>> >>>> >>>> >>>> >>>> >>> >> >> > --f46d04088c7f0d76f004c5aebd25--