Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 46517 invoked from network); 16 Feb 2008 01:05:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2008 01:05:50 -0000 Received: (qmail 12425 invoked by uid 500); 16 Feb 2008 01:05:44 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 12403 invoked by uid 500); 16 Feb 2008 01:05:44 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 12394 invoked by uid 99); 16 Feb 2008 01:05:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 17:05:44 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Feb 2008 01:05:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JQBUW-0003Bk-00 for camel-user@activemq.apache.org; Fri, 15 Feb 2008 17:05:20 -0800 Message-ID: <15513400.post@talk.nabble.com> Date: Fri, 15 Feb 2008 17:05:19 -0800 (PST) From: "steven.marcus" To: camel-user@activemq.apache.org Subject: Re: seda broken in latest snapshot? In-Reply-To: <15510480.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: steven.marcus@gmail.com References: <15510480.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org There was supposed to be a ? at the end of the subject! It might be that the execution dynamics of the seda client have changed at the default queue size of 1000 is now no longer sufficient. However, a couple of questions about SedaConsumer: public void run() { while (isRunAllowed()) { final Exchange exchange; try { exchange = endpoint.getQueue().poll(1000, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { break; } if (exchange != null && isRunAllowed()) { processor.process(exchange, new AsyncCallback() { public void done(boolean sync) { } }); } } } Is there a need to be concerned about abnormal consumer thread termination? The code in processor.process might throw an exception and kill the seda queue. Logging might be useful at a minimum. Also, are "spurious interrupts" still a concern? If so, continue would be better than break to exit only if isRunAllowed() says so to do... catch (InterruptedException e) { continue; // break; } thanks again for camel! -- View this message in context: http://www.nabble.com/seda-broken-in-latest-snapshot-tp15510480s22882p15513400.html Sent from the Camel - Users mailing list archive at Nabble.com.