Re: Body Object in Camel Exchange

2017-01-09 Thread yxzhao
Sorry I have not checked this thread. Thanks for your reply. We're not using the latest Camel version, but 2.14.2. Based on what CAMEL-6481 describes and the fixed time, version 2.14.2 should not have this problem anymore. However, it does happen. We changed our config to go around as of now. Hop

Re: How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-09 Thread Taariq Levack
Hi, Content enricher seems like a good fit. Cheers On 09 Jan 2017 20:35, "sim085" wrote: Hi Colin, Thanks for your answer. I tried your example: [code] from("seda:A") .log("Hello From A") .setHeader("MyHeader", constant("A-HEADE

Re: How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-09 Thread sim085
Hi Colin, Thanks for your answer. I tried your example: [code] from("seda:A") .log("Hello From A") .setHeader("MyHeader", constant("A-HEADER")) .transform(constant("A-BODY")) //.inOnly(

Re: How to increase the performance for SFTP file polling consumer

2017-01-09 Thread Zoran Regvart
Hi, there was a blog post recently addressing just that by Josh Reagan: http://joshdreagan.github.io/2017/01/05/faster_file_consumption_with_camel/ see if that helps, zoran On Mon, Jan 9, 2017 at 12:55 PM, ravishankarhassain wrote: > I am trying to create a file polling route which will poll t

How to increase the performance for SFTP file polling consumer

2017-01-09 Thread ravishankarhassain
I am trying to create a file polling route which will poll the source SFTP server and transfer the file to the destination SFTP server. The file count is huge and the source can generate upto 270 - 300 files per second where as the file size is in KB. I am planing to have 3 instance (say A, B, C)

Re: How to read file inside a route?

2017-01-09 Thread bdeweer
Thank you for your reply. Indeed, the poolEnrich with a custom strategy make it works. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-read-file-inside-a-route-tp5792292p5792302.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-09 Thread Colin Sharples
I just had a very similar situation, which I got round by using a ProducerTemplate to call the second route. So instead of the inOnly() in route A, you would have a Processor which invokes route B synchronously, which will leave the Exchange in route A unaltered. For example: .transform(consta

Re: How to read file inside a route?

2017-01-09 Thread souciance
You can use the file component to read the file and then do whatever you want with the data. On Mon, Jan 9, 2017 at 9:32 AM, bdeweer [via Camel] < ml-node+s465427n5792292...@n5.nabble.com> wrote: > Hello, > > I have a simple SOAP WS that takes a filename as entry (string) and a file > payload as

How to read file inside a route?

2017-01-09 Thread bdeweer
Hello, I have a simple SOAP WS that takes a filename as entry (string) and a file payload as output. Inside the route I have to read the file to get the content. How to make it with camel ? Can I use the file compoment or do I need to use the java NIO api inside a Camel processor ? How to use

Re: Camel EhCache 2.18.1 - Exception during initialization

2017-01-09 Thread urwithsumit
Luca, I reverted back to the camel-cache component as i was not getting ahead with ehcache. As per your request, I have logged it as a minor bug: https://issues.apache.org/jira/browse/CAMEL-10681 Regards Sumit -- View this message in context: http://camel.465427.n5.nabble.com/Camel-EhCach

How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-09 Thread sim085
Hello, I have a route "A" which calls a route "B", route "B" adds some headers, removes some others, changes the body, etc. Is there a way how I can call route "B" from route "A", wait for route "B" to finish and once route "B" returns, route "A" will be in the same state as before calling route "