Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 13660 invoked from network); 1 May 2009 07:25:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 May 2009 07:25:08 -0000 Received: (qmail 38319 invoked by uid 500); 1 May 2009 07:25:07 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38296 invoked by uid 500); 1 May 2009 07:25:07 -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 38286 invoked by uid 99); 1 May 2009 07:25:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 07:25:07 +0000 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 claus.ibsen@gmail.com designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-fx0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2009 07:24:58 +0000 Received: by fxm25 with SMTP id 25so2214265fxm.20 for ; Fri, 01 May 2009 00:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=UqzlID0sOulVwNequpQ9HKazyA0x4wHZcWs/O2Mgz2s=; b=e/jeIZIeWzFmt9ynOQ8GbCg3xeI5GCTGr2vo2fNPiywziUYTvjJaf0v1UV30PYkoU7 MHNm4zEG0Ldjj1OnYapecO9yTwPL3C44bph+P1iOP3lDZ7jS/bCv0biWwUy0E6jqBFpO WTfFGGXPgu5NcuVUDasFB2SiU0vpRL2Hg9Q9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=RYjLMxwM17I+OwqV3iDIstW8CsqWrJicQVXkxtLRH64gPzRXp8al3/0hXCL9ZHdKii vSXpFUOVAZM3C4vwgWQGnwh+ukpz9gHt7B1v+/0TM3PWRHeuLucD8m6TMmU1HkK0gvJv NjOMUjh0OLRitQJx5tyFx2SxwvOSc4k0SVm6Q= MIME-Version: 1.0 Received: by 10.223.106.14 with SMTP id v14mr1077220fao.49.1241162677132; Fri, 01 May 2009 00:24:37 -0700 (PDT) In-Reply-To: <23012582.post@talk.nabble.com> References: <22981898.post@talk.nabble.com> <22986139.post@talk.nabble.com> <23012582.post@talk.nabble.com> From: Claus Ibsen Date: Fri, 1 May 2009 09:24:17 +0200 Message-ID: <5380c69c0905010024h6184d855q443e9ed3e9b8d1ac@mail.gmail.com> Subject: Re: Router Blocked by full Destination Route Queue To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi I was looking into another matter and the problem with the sending to JMS hangs is explained a bit here: http://www.nabble.com/Do-the-send-timeouts-actually-work--td20583221.html The other matter is this one: http://fusesource.com/issues/browse/MR-170 On Sun, Apr 12, 2009 at 6:47 PM, yesnid wrote: > > Hello, > > Below you will find a simplified example, of what my router is doing, > basically recieving on one queue and then resending on another in this > example, now to get the test working properly, have a producer send messa= ges > to the recieving queue and no one listening to the destination queue > eventually the router will hang. > > My producers are connecting with the following, settings to the broker; > Delivery Mode =3D persistent, Message TTL =3D 0 (Essentially infinite), > transacted =3D false, session =3D auto acknowledge. > > To see the problem faster you can set the memory in the policy entry for = you > queue to lower, I suggest really low so that the problem appears really f= ast > and you don't have to wait to see it appear. > > public class TestCamelRouter extends RouteBuilder > { > =A0 =A0 =A0 =A0final static String BEAN_NAME =3D "TestCamelRouter"; > =A0 =A0 =A0 =A0final static String BEAN_METHOD =3D "route"; > > =A0 =A0 =A0 =A0@RecipientList > =A0 =A0 =A0 =A0public List route(Exchange exchange) > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ArrayList returnSet =3D new ArrayL= ist(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0returnSet.add("JMS-BROKER" + ":queue:" + "= TestDeliveryQueue"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return returnSet; > =A0 =A0 =A0 =A0} > > =A0 =A0 =A0 =A0@Override > =A0 =A0 =A0 =A0public void configure() throws Exception > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from("JMS-BROKER" + ":queue:" + > "RecievingQueue").beanRef(TestCamelRouter.BEAN_NAME, > TestCamelRouter.BEAN_METHOD); > =A0 =A0 =A0 =A0} > > =A0 =A0 =A0 =A0public static void main(String[] args) > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0JndiContext jndiContext =3D null; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0try > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jndiContext =3D new JndiCo= ntext(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jndiContext.bind(TestCamel= Router.BEAN_NAME, new TestCamelRouter()); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0catch (Exception e) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0e.printStackTrace(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CamelContext context =3D new DefaultCamelC= ontext(jndiContext); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ActiveMQConnectionFactory factory =3D new > ActiveMQConnectionFactory("tcp://localhost:61616"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0factory.setDispatchAsync(true); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0context.addComponent("JMS-BROKER", > JmsComponent.jmsComponentAutoAcknowledge(factory)); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0try > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0context.addRoutes(new Test= CamelRouter()); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0context.start(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0while (true) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Thread.sle= ep(60000); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0catch (Exception e) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0e.printStackTrace(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0} > > } > > > > > > > > huntc wrote: >> >> Can you please provide the route's specification in code or XML. This wi= ll >> give us a better chance of answering your question. >> >> Having said that, sounds like you've got an internal seda queue... I wou= ld >> have thought that an exception would be thrown once the queue becomes >> full. By default a seda queue can only hold 1000 items. >> >> If it is a JMS queue, then would setting the time to live option be usef= ul >> to you? >> > > -- > View this message in context: http://www.nabble.com/Router-Blocked-by-ful= l-Destination-Route-Queue-tp22981898p23012582.html > Sent from the Camel - Users (activemq) mailing list archive at Nabble.com= . > > --=20 Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration