Re: Schedule file/mail endpoint

2011-01-27 Thread Claus Ibsen
Hi Yeah the mail consumer should work with pollEnrich. Seems like a NPE exception. Maybe you can dig in the source and see why? Fell free to open a JIRA, so we can look into it and have it fixed. On Thu, Jan 27, 2011 at 12:57 PM, Alfred Hiebl wrote: > > Hi, > > thanks a lot for your quick resp

Re: Schedule file/mail endpoint

2011-01-27 Thread Dan Checkoway
Alfred, Why not just use the mail component's consumer.delay instead of the timer+pollEnrich? i.e. something like this: Hope this helps, Dan On Thu, Jan 27, 2011 at 6:57 AM, Alfred Hiebl wrote: > > Hi, > > thanks a lot for your quick response and suggestions!! > > Now that I played a

Re: Schedule file/mail endpoint

2011-01-27 Thread Alfred Hiebl
Hi, thanks a lot for your quick response and suggestions!! Now that I played a little more with my example, I ran into this issue. Should pollEnrich work with the mail component? I end up with this exception: 2011-01-27 12:46:32,111 [foo] ERROR DefaultErrorHandler -

Re: Schedule file/mail endpoint

2011-01-26 Thread Ashwin Karpe
Hi, Your file poller failover requirement can be addressed very simply. You need to create a JMX event listener to listen to camel events (see link below for example) http://camel.apache.org/camel-jmx.html http://camel.apache.org/camel-jmx.html When a camel context, connection or montored ent

Re: Schedule file/mail endpoint

2011-01-26 Thread Claus Ibsen
Quartz suports running in a clustered environment where it can trigger tasks to only run on one node. On Tue, Jan 25, 2011 at 6:33 PM, Alfred Hiebl wrote: > > Hi, > > I'd like to ask for a best practice for a situation which I hope to be a > common use-case. In our routes we consume data from po

Re: Schedule file/mail endpoint

2011-01-26 Thread Alfred Hiebl
Hi Ashwin, Agreed. As soon as the messages are in my JMS queue the problem is solved. But then the question is, how do I failover my single poller in case the one node goes down that runs it. And, preferrably, the single poller is also a Camel route. This implies that I have differing route co

Re: Schedule file/mail endpoint

2011-01-25 Thread Ashwin Karpe
Hi, Unless, I am missing something, can you not use a single poller to drop the messages from files on to a JMS queue and then use concurrent consumers to work these messages on different machines...? JMS should give you guaranteed delivery, idempotent behavior, load balancing, failover, rollbac