camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: EIP pattern for blocking messages or delaying messages
Date Mon, 01 Aug 2011 13:03:07 GMT
How do you stop the route ?
The myroute route will keep running until you stop the route from the 
camel context.
On 8/1/11 6:10 PM, srimin wrote:
> Hi
>
>
> using FuseESB- apache-servicemix-4.4.0-fuse-00-43
>
>
> 'myroute'  should be opened from 13.00 to 13:50, but i see the messages are
> pumping in every minute
> as if there is no routePolicy applied.
>
>
> myroute.xml looks like this
>
>
>
>> <bean id="startPolicy"
>> class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy">
>>      <property name="routeStartTime" value="0 0/10 13 * * ?"/>
>> </bean>
>>
>> <camelContext xmlns="http://camel.apache.org/schema/spring">
>> 	<route id="r1"  startupOrder="1">
>> 		<from uri="timer://MyTimer?fixedRate=true&amp;period=60s" />
>> 		<setBody>
>> 			<constant>Helloooo Zombie!</constant>
>> 		</setBody>
>> 		<to uri="activemq:test" />
>> 	</route>
>>    <route id="myroute" startupOrder="2"  routePolicyRef="startPolicy">
>> 		<from uri="activemq:test" />
>> 		<to uri="file:///tmp/tests" />
>>    </route>
>> </camelContext>
>>
>>
>
>
> It seems i'm doing something stupid here.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/EIP-pattern-for-blocking-messages-or-delaying-messages-tp4599813p4654580.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message