Hi, Quartz Camel component is not a polling component but a component able to schedule 'using cron strategy of Quartz' delivery of messages. As a jms/activemq client/camel component listens on a queue and is created by default when placed in the from() of a camel route, the only way to achieve your goal is to start/stop a camel route reading messages from a queue according to a policy or perhaps using a scheduled route policy ( http://camel.apache.org/cronscheduledroutepolicy.html)
Regards, On Tue, Jun 11, 2013 at 9:41 PM, icemanltd <[email protected]> wrote: > Maybe I am misreading the polling consumer documentation here > <http://camel.apache.org/polling-consumer.html> ? It looks like the > Quartz > component should be a ScheduledPollConsumer and thus support the > pollStrategy attribute but when I try it in my Spring DSL it reports the > pollStrategy as an unsupported property. > > My route looks like > <route> > <from uri="quartz://myTimer?cron=0 * * * * ? > *&pollStrategy=#resourceBasedPoller"/> > <pollEnrich uri="activemq://queue:NewFilesQueue"/> > .... > </route> > > Is the documentation wrong, am I misunderstanding it or am I not using it > properly? > > Regardless, I am trying to control messages being picked up off the queue. > My polling strategy would check some system/resource availability and > decline the poll if not ready. Maybe there is a better way to do it? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
