FTP route that could do move files upon an event

2016-01-10 Thread theLazyLad
Hi, I need to develop a route wherein I can consume a file from an FTP location and copy it to some other folder. After that I need to send the path of the consumed file to a web service and upon successful invocation of that service I need to move the file from the initial FTP location to another

Re: timer reschedule / loop between routes

2016-01-10 Thread Ravindra Godbole
Can you maintain a persistent state for directcaller ? If you can do that 1. Timer always executes at predefined interval [ 1 sec or whatever 2. direct:apiCaller maintains a state STARTED, INPROGRESS, FINISHED. 3. if next call from timer sees that state is INPROGRESS then nothing happens. If

Re: Producer Template // Count mismatch

2016-01-10 Thread Reji Mathews
Hey Saurabh Thanks for ur solution . It was indeed perfect. I overlooked on the fact that java works on call by reference model and it's always pointers to the memory location. We fixed it by using Cloned objects Cheers Reji On 7 Jan 2016 02:49, "CamelNayar" wrote: > Reji, > > I am not sure why

Re: Camel jetty filtersRef how to set init parameters for filter

2016-01-10 Thread J-
The problem is, when jetty starts up the filter it calls the filters init method again essentially erasing whatever i set in the init manually. -J From: Willem Jiang Sent: Sunday, January 10, 2016 4:47 AM To: users@camel.apache.org; J- Subject: Re: Camel

Re: timer reschedule / loop between routes

2016-01-10 Thread zappee
thx! -- View this message in context: http://camel.465427.n5.nabble.com/timer-reschedule-loop-between-routes-tp5776017p5776100.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: org.apache.camel.InvalidPayloadException after adding a @PreAuthorized Annotation to service method

2016-01-10 Thread Claus Ibsen
Hi How do you call that bean method - sendMailStandardAsync ? Do you call it from another route or some java bean? And is there more in the stacktrace? I wonder what that Map contains? I can only assume spring do some proxy stuff and change the method parameters or something. If you can setup a

Re: Missing JmsQueueEndpoint.queueSize() method in 2.16.1

2016-01-10 Thread Claus Ibsen
Its from ManagedBrowsableEndpointMBean and only available in JMX. You can get the size yourself with calling getExchanges().size(); On Fri, Jan 8, 2016 at 11:45 AM, Stijn Haezebrouck wrote: > The queueSize() method is documented in the JavaDoc "current", see > link-to-currentJmsQueueEndpoint

Re: deadLetterHandleNewException(false) seems to not work as expected

2016-01-10 Thread Claus Ibsen
Hi This is as expected. The option deadLetterHandleNewException is only for new errors happening while the dead letter channel is processing the message. Your code just routes to a log as the dead letter channel and there is no exception thrown. See this unit test for an example https://github.c

Re: deadLetterHandleNewException(false) seems to not work as expected

2016-01-10 Thread Willem Jiang
Can you share your camel route with us? -- Willem Jiang Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On January 8, 2016 at 11:54:55 PM, lchdev (lch...@outlook.be) wrote: > - Bump - > > Still having to work around

Re: Camel Netty4 component tcp client reconnect limit

2016-01-10 Thread Willem Jiang
I just checked the code, camel just calls the openChannel method recursively until the connection is established when starting the NettyConsumer in client mode. It could be good idea to fail fast by throwing the exception out after a couple of retries. -- Willem Jiang Blog: http://willemji

Re: Camel jetty filtersRef how to set init parameters for filter

2016-01-10 Thread Willem Jiang
As camel-jetty doesn’t leverage the web.xml to setup the filters, I don’t think there is a blocker when calling the filter init method yourself.  When you setup the filters instance to the Camel registry, you can call the filter init method to pass the parameters yourself. -- Willem Jiang B