please post
Date: Wed, 12 Jun 2013 06:11:23 -0700
From: [email protected]
To: [email protected]
Subject: Re: Is Quartz component a scheduled polling component?
Thank you for your response. I had exactly what I wanted with a file
endpoint and wanted to extend that to a jms endpoint. I guess am
misunderstanding the documentation. Anyway, I think I have accomplished what I
wanted to do using consumer/producer templates and a bean.
The route looks like
<route id="Test">
<from uri="timer://foo?period=10000"/>
<to uri="bean:testBean?method=consumeIfAble"/>
<log message="test has started"/>
</route>
And, in the consumeIfAble method I check on resource requirements and if they
are met I consume from the activemq endpoint and if there was any message, send
it directly to another endpoint.
consumer.receive("activemq://queue:NewFileQueue", 1000)
producer.sendBody("direct:test", message)
I think this is a reasonable alternative?
If you reply to this email, your message will be added to the
discussion below:
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734134.html
To unsubscribe from Is Quartz component a scheduled polling
component?, click here.
NAML
--
View this message in context:
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734135.html
Sent from the Camel - Users mailing list archive at Nabble.com.