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?
--
View this message in context:
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734134.html
Sent from the Camel - Users mailing list archive at Nabble.com.