camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Ulanov <dula...@gmail.com>
Subject Re: Camel : schedule the move of messages
Date Fri, 20 Nov 2009 15:42:06 GMT
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 <dulanov@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 <titexe@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.
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message