You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by asd09 <ne...@mail.ru> on 2012/02/20 07:05:49 UTC
from jms and quartz
hi,
how i can do something lke this:
<from uri="quartz://loadTimer?cron=0+0+9-17+*+*+?"/>
<from uri="somequeue"/>
...
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498266.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from jms and quartz
Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,
I have updated the documentation for the CronScheduledRoutePolicy to add the
autoStartup flag so that other users do not come upon a similar issue of
routes staring up on discovery/bootstrap but according to the policy.
The documentation change should show up in the next few hours...
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498929.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from jms and quartz
Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,
The CronScheduledRoutePolicy is designed to fire up a route for a fixed
period of time and bring it down following a time interval.
The idea is to do some batch processing in a given time window... Can you
clarify what you mean by "it doesn't work".
Also can you add the following flag to your route "autoStartup=false". Your
route is being started/primed by the context as soon as it is discovered,
thereby not allowing the route to be primed by your policy for the first
go-around. It should work from the second go-around since the route is
stopped and then re-started.
Adding the autoStartup will ensure that your policy is the only one that
starts/stops the route...
Hope this helps.
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498903.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from jms and quartz
Posted by asd09 <ne...@mail.ru>.
read my first post, i need jms
asd09 wrote
>
> <from uri="jms:somequeue"/>
>
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498645.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from jms and quartz
Posted by asd09 <ne...@mail.ru>.
i try this:
(http://camel.apache.org/cronscheduledroutepolicy.html)
<bean id="startPolicy"
class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy">
<property name="routeStartTime" value="0 46 17 * * ?"/>
<property name="routeStopTime" value="0 0 23 * * ?"/>
</bean>
<route id="outgoingPaymentLog" routePolicyRef="startPolicy">
<from uri="jms:outgoingPaymentLog?transacted=true"/>
<to
uri="log:someLog?multiline=true&showHeaders=true"/>
</route>
but it doesn't work. Instead of wait, messages just printing in log.
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498329.html
Sent from the Camel - Users mailing list archive at Nabble.com.