Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-03 Thread sandp
Thank Claus that helped. I'm trying to set a property below for Scheduled Delivery just before delivering to HornetQ *_JBM_SCHED_DELIVERY* I tried setting the property as a Header and Property on the Exchange Message neither worked. Is there is a camel option that can recognize a schedule?

camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread sandp
Hi, Is is possible to use quartz2 as a polling consumer to poll a JMS Queue? Or what is the best camel way to poll a queue with a CRON job? I'm looking for something that is possible with file and ftp under section* Using QuartzScheduledPollConsumerScheduler *in the link below:

Rép. : camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Thierry RABUEL
Hello, I can't say what is best for jms polling with a scheduled task. But you're not using the quartz2 component the right way. You should have a look at the documentation : http://camel.apache.org/quartz2.html Your route should start something like this :

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Charles Moulliard
Hi, You can't mix parameters of the JMS endpoint with the Quartz endpoint like you did. To be able to define when you would like to poll a queue, you should use the quartz2 endpoint with the enrich poll EIP partner from(quartz2:...) .pollEnrich(jms:queue:...) .to() Regards, On Wed, Oct 1, 2014

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Claus Ibsen
The JMS consumer is event driven so it reacts when a new message is on the queue. It only makes sense to use a CRON if you want to use that to control when the route is active and when its not active. For that see about route policy http://camel.apache.org/routepolicy On Wed, Oct 1, 2014 at 9:46