camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From titexe <tit...@yahoo.Fr>
Subject Re: Camel : schedule the move of messages
Date Thu, 26 Nov 2009 09:00:47 GMT

Thank you for your help


Claus Ibsen-2 wrote:
> 
> On Tue, Nov 24, 2009 at 6:17 PM, titexe <titexe@yahoo.fr> wrote:
>>
>> Thank you for your reply
>>
>> my need is simple, I want to transfer messages from the queue A to queue
>> B,
>> each 1 hour.
>>
>> I think the examples that are present in this page is not used to me.
>>
>> de you have ideas that could help me ?
>>
> 
> Well Ashwin did in fact point you to a good place in the documentation
> 
> The polling consumer
>    http://camel.apache.org/polling-consumer.html
> 
> See the example - Timer based polling consumer
> Which does exactly what you want, although it does it every 5th second.
> 
>> thank you again
>>
>> titexe
>>
>>
>> Ashwin Karpe wrote:
>>>
>>> Hi,
>>>
>>> You could do the following
>>>
>>>              from("timer://foo?period=3600000").
>>>                 process (new Processor(Exchange exchange) {
>>>                      exchange.getOut().setBody("My FooBar Message");
>>>                 }).
>>>                 to(activemq:MyQueue);
>>>
>>>              from(activemq:MyQueue).bean(doSomething);
>>>
>>> Alternatively, Check this link out
>>>       http://camel.apache.org/polling-consumer.html
>>>
>>> It demonstrates another way, a timer or quartz component can be used to
>>> kick off a route that then allows for a JMS message to be picked up from
>>> a
>>> queue and delivered a a scheduled interval.
>>>
>>> Hope this helps.
>>>
>>>
>>> Cheers,
>>>
>>> Ashwin...
>>>
>>>
>>> titexe wrote:
>>>>
>>>> Hello,
>>>>
>>>> there's a possibility to schedule a move of messages from one queue to
>>>> another, every 1 hour?
>>>>
>>>> If yes, how;)? Thank you for giving me an example:)
>>>>
>>>> Thank you in advance
>>>>
>>>> titexe
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Camel-%3A-schedule-the-move-of-messages-tp26443376p26498569.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: http://old.nabble.com/Camel-%3A-schedule-the-move-of-messages-tp26443376p26525294.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message