Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 66490 invoked from network); 14 Nov 2007 16:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2007 16:33:54 -0000 Received: (qmail 99471 invoked by uid 500); 14 Nov 2007 16:33:38 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 99452 invoked by uid 500); 14 Nov 2007 16:33:38 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 99363 invoked by uid 99); 14 Nov 2007 16:33:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 08:33:38 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 16:34:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7A77714204 for ; Wed, 14 Nov 2007 08:33:27 -0800 (PST) Message-ID: <8005376.1195058007879.JavaMail.jira@brutus> Date: Wed, 14 Nov 2007 08:33:27 -0800 (PST) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-215) Add DSL support for LoadBalance In-Reply-To: <26400572.1194964343181.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40613 ] Willem Jiang commented on CAMEL-215: ------------------------------------ sorry , it is my fault. We should create a RandomLoadBalancer here. > Add DSL support for LoadBalance > -------------------------------- > > Key: CAMEL-215 > URL: https://issues.apache.org/activemq/browse/CAMEL-215 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Willem Jiang > Fix For: 1.3.0 > > Attachments: camel-215(new).patch > > > LoadBalancingProcessor myStrategy; // my own strategy to choose an endpoint > from(endpointA).loadBalance().setLoadBalance(myStrategy).to(Endpoint1, Endpoint2, ...); > or if can use an out of the box strategy like: > from(endpointA).loadBalance().roundRobin(),to(endpoint1, endpoint2, ...); > Just a minor twist on that idea; how about > from(endpointA).loadBalance().roundRobin().endpoints(). > where loadBalance() returns a LoadBalanceClause rather like filter() > returns an ExpressionClause which lets folks pick the strategy of load > balancer to use. > Using a named reference could be by > from(endpointA).loadBalance().ref("someName")... > I also added the idea of using an expression to determine the > endpoints to load balance across as we might wanna support dynamic > load balancing. e.g. querying the endpoints in OSGi or JNDI or > whatever. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.