Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 36677 invoked from network); 4 Sep 2010 11:23:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Sep 2010 11:23:23 -0000 Received: (qmail 19412 invoked by uid 500); 4 Sep 2010 11:23:23 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 19289 invoked by uid 500); 4 Sep 2010 11:23:21 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 19281 invoked by uid 500); 4 Sep 2010 11:23:20 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 19278 invoked by uid 99); 4 Sep 2010 11:23:20 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Sep 2010 11:23:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Sep 2010 11:23:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o84BMeOZ004420 for ; Sat, 4 Sep 2010 11:22:41 GMT Message-ID: <24827036.10281283599360912.JavaMail.jira@thor> Date: Sat, 4 Sep 2010 07:22:40 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2936) Provided a ScheduledRoutePolicy to make it easy to define when routes should be active In-Reply-To: <2222442.38571278781191798.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61682#action_61682 ] Claus Ibsen commented on CAMEL-2936: ------------------------------------ Ashwin check this documentation http://camel.apache.org/routepolicy.html The idea is to assign routes with a policy which dictates when those routes is active. The policy should have it easy to define rules such as based on CRON or a simple rules based on a window opening (eg. 8am to 6pm). The trick is with CRON we have to leverage quartz as it got a CRON parser. Or in the future Spring 3 which may also have one. But for starters go for the simple solution with something that is easy to configure out of the box. Sometimes people want routes to be inactive during night time when backup and other jobs may run. > Provided a ScheduledRoutePolicy to make it easy to define when routes should be active > -------------------------------------------------------------------------------------- > > Key: CAMEL-2936 > URL: https://issues.apache.org/activemq/browse/CAMEL-2936 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Ashwin Karpe > Priority: Minor > Fix For: Future > > > A {{ScheduledRoutePolicy}} which can suspend/resume routes based on a user configuration. > The scheduled should invoke a callback on regular bases where end user can determine if the routes should be active nor not. > For example we may even let it be defined using cron or the likes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.