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 ECA09D02D for ; Wed, 10 Oct 2012 20:23:23 +0000 (UTC) Received: (qmail 42336 invoked by uid 500); 10 Oct 2012 20:23:23 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 42303 invoked by uid 500); 10 Oct 2012 20:23:23 -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 42293 invoked by uid 99); 10 Oct 2012 20:23:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 20:23:23 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of aleriospresidente@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 20:23:16 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TM2nw-0007Sm-6w for users@camel.apache.org; Wed, 10 Oct 2012 13:22:56 -0700 Date: Wed, 10 Oct 2012 13:22:56 -0700 (PDT) From: alerios To: users@camel.apache.org Message-ID: <1349900576207-5720862.post@n5.nabble.com> In-Reply-To: <1349843135492-5720824.post@n5.nabble.com> References: <1349819353996-5720818.post@n5.nabble.com> <1349843135492-5720824.post@n5.nabble.com> Subject: Re: Removing an Endpoint from a route MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Guru, thanks for your reply. I think using the failover load balancer is not an option for me, since my Bean will not throw an exception when it fails. I want to disable the Endpoint when I want, based on health checks, for example. Also, I would like to use the weigthed loadbalancer instead, maybe I would have to implement my own LoadBalancer class, but then I don't see any value in using Camel at all for my escenario. I tested the JMX console to stop an endpoint processor, but it happens the same as when removing the Endpoint from the Registry: Caused by: java.lang.IllegalStateException: SendProcessor has not been started: sendTo(Endpoint[bean://tmi3?method=sendResponse]) I guess camel is not designed to remove endpoints at runtime. Maybe I should try removing, and adding the route again, but I'm afraid that could cause a race condition because of many threads trying to do the same. -- View this message in context: http://camel.465427.n5.nabble.com/Removing-an-Endpoint-from-a-route-tp5720818p5720862.html Sent from the Camel - Users mailing list archive at Nabble.com.