You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2013/01/04 18:00:20 UTC
Re: Route Policy Question: Server Restarts
Hi
Catching up with mails.
On Tue, Dec 18, 2012 at 7:51 PM, pglebow <pg...@gmail.com> wrote:
> I have several routes that run at different times during the business day. A
> CronScheduledRoutePolicy is used to control the polling schedule. For
> example, the system polls for a file via FTP between 14:00 and 15:00 each
> week day - the file is not guaranteed to be there prior to that time per our
> SLA with the vendor.
>
> The route policy is in place so that the system does not constantly badger
> the FTP server with useless requests.
>
> However, from time to time, we need to restart our server. What I've
> observed is that if the server is restarted at 14:30, the route must be
> manually enabled via JMX. We actually have 20-30 routes and this is a
> burden for our support team; they often miss a route or two.
>
> What I'd like to have is a policy that says "run this route every n minutes
> from 14:00 - 15:00 each weekday" - and have it activated even we restart the
> server at 14:30.
>
> Is there a way to do this with a route policy?
>
No currently not.
Though quartz have some miss-fire configuration you maybe can use.
Not sure how to configure and set that up.
I have though of the same issue myself, so maybe we can add some new
option to camel-quarz.
So when it started, it would check that if a route policy is within
the "window" and if so, then
start it, if the new option was enabled.
Feel free to log a JIRA ticket.
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Route-Policy-Question-Server-Restarts-tp5724302.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Route Policy Question: Server Restarts
Posted by pglebow <pg...@gmail.com>.
I've entered https://issues.apache.org/jira/browse/CAMEL-5929. Thanks
again!
Phil
On Fri, Jan 4, 2013 at 9:01 AM, Claus Ibsen-2 [via Camel] <
ml-node+s465427n5724919h83@n5.nabble.com> wrote:
> Hi
>
> Catching up with mails.
>
> On Tue, Dec 18, 2012 at 7:51 PM, pglebow <[hidden email]<http://user/SendEmail.jtp?type=node&node=5724919&i=0>>
> wrote:
>
> > I have several routes that run at different times during the business
> day. A
> > CronScheduledRoutePolicy is used to control the polling schedule. For
> > example, the system polls for a file via FTP between 14:00 and 15:00
> each
> > week day - the file is not guaranteed to be there prior to that time per
> our
> > SLA with the vendor.
> >
> > The route policy is in place so that the system does not constantly
> badger
> > the FTP server with useless requests.
> >
> > However, from time to time, we need to restart our server. What I've
> > observed is that if the server is restarted at 14:30, the route must be
> > manually enabled via JMX. We actually have 20-30 routes and this is a
> > burden for our support team; they often miss a route or two.
> >
> > What I'd like to have is a policy that says "run this route every n
> minutes
> > from 14:00 - 15:00 each weekday" - and have it activated even we restart
> the
> > server at 14:30.
> >
> > Is there a way to do this with a route policy?
> >
>
> No currently not.
>
> Though quartz have some miss-fire configuration you maybe can use.
> Not sure how to configure and set that up.
>
> I have though of the same issue myself, so maybe we can add some new
> option to camel-quarz.
> So when it started, it would check that if a route policy is within
> the "window" and if so, then
> start it, if the new option was enabled.
>
> Feel free to log a JIRA ticket.
>
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Route-Policy-Question-Server-Restarts-tp5724302.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5724919&i=1>
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Route-Policy-Question-Server-Restarts-tp5724302p5724919.html
> To unsubscribe from Route Policy Question: Server Restarts, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5724302&code=cGdsZWJvd0BnbWFpbC5jb218NTcyNDMwMnwxMzA2NDIwNjI1>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://camel.465427.n5.nabble.com/Route-Policy-Question-Server-Restarts-tp5724302p5724933.html
Sent from the Camel - Users mailing list archive at Nabble.com.