Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 25963 invoked from network); 20 Mar 2009 20:13:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 20:13:35 -0000 Received: (qmail 85158 invoked by uid 500); 20 Mar 2009 20:13:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 85138 invoked by uid 500); 20 Mar 2009 20:13:34 -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 85127 invoked by uid 99); 20 Mar 2009 20:13:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 13:13:34 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Fri, 20 Mar 2009 20:13:25 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lkl5U-0000xs-UV for users@camel.apache.org; Fri, 20 Mar 2009 13:13:04 -0700 Message-ID: <22628026.post@talk.nabble.com> Date: Fri, 20 Mar 2009 13:13:04 -0700 (PDT) From: Bob Pollack To: users@camel.apache.org Subject: What If JBI sendSync() Never Returns? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: robert_h_pollack@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org Does anyone know of a way to set a timer for JBI endpoints? If I make a request of a JBI service (by something like to ("jbi:endpoint:foo"), the call to the JBI endpoint seems to be made as DeliveryChannel.sendSync (message), with no timeout. If the target JBI service doesn't respond (let's say it crashes), the Camel route seems to hang forever. When I look at the code, the JBI call seems to be done by org.apache.servicemix.common.endpoints.SimpleEndpoint, which doesn't even contain a sendSync() call with a timeout. So I conclude that there's no way for Camel to ask for one. Should this be submitted as an enhancement request? (If so, can someone tell me where?) Or does someone have a Camel workaround or a Java thread solution? (This is related to http://www.nabble.com/Servicemix-Camel-problem---ToJbiProcessor-hangs-tp18651622p18651622.html a similar problem that has already been posted here. But the previous problem concerned a JBI-JMS interaction that appears to have been solved by changing the JMS logic. I'm interested in a solution that gives me some kind of timeout when the target JBI component fails to respond for any reason whatsoever.) Thanks in advance to anyone who can help. -- View this message in context: http://www.nabble.com/What-If-JBI-sendSync%28%29-Never-Returns--tp22628026p22628026.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.