Sorry for my example, just see "Timer based polling consumer" paragraph on
http://camel.apache.org/polling-consumer.html.

On Fri, Nov 20, 2009 at 6:40 PM, Dmitry Ulanov <dula...@gmail.com> wrote:

>       new Thread(new Runnable() {
>                       @Override public void run() {
>                               try {
>                               PollingConsumer consumer = 
> getContext().getEndpoint("activemq:queue1").createPollingConsumer();
>                               Producer producer = 
> getContext().getEndpoint("activemq:queue2").createProducer();
>
>                                       while (!Thread.interrupted()) {
>                                               producer.process(exchange);
>                                               Thread.sleep(7000);
>                                       }
>                                       }
>                               } catch (Exception e) {
>                                       throw new RuntimeException(e);
>                               }
>                       }
>
>               }).start();
>
> More, http://camel.apache.org/polling-consumer.html
>
>
> On Fri, Nov 20, 2009 at 6:34 PM, titexe <tit...@yahoo.fr> 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-tp26443376p26443376.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>

Reply via email to