Log processor loses message

2013-07-10 Thread vss123
Hi,When we use log EIP with http, we observe a strange behaviour. The body of the message is getting lost after it does logging. public class LogTest extends CamelTestSupport {@Overrideprotected RouteBuilder createRouteBuilder() throws Exception {return new RouteBuilder() {

Re: Log processor loses message

2013-07-10 Thread vss123
Oops.. right.. Thank you :) -- View this message in context: http://camel.465427.n5.nabble.com/Log-processor-loses-message-tp5735417p5735436.html Sent from the Camel - Users mailing list archive at Nabble.com.

File 'markerFile' strategy race condition

2013-05-31 Thread vss123
Hi,We use camel 2.11 version on Linux.We run two instances of camel which watch on the a directory to pick, process and move files to processed directory on successful completion. On error it gets moved to error directory. We use 'markerFile' as a strategy for read lock.What we observe is that

Re: File component/language: preMove only

2013-04-08 Thread vss123
And the other Camel is picking up that file. Eg it get processed? So the failed to rename is a race condition because the other Camel grabbed the same file, but was faster to do the rename? We believe this is what is happening. Even with readLock option two instances pick the same file and

Re: Retry based on HTTP response codes

2013-03-28 Thread vss123
Oh sorry.. I did not explain clearly.We wanted to throw different exceptions for 4xx and 5xx errors and handle them differently. The problem is that we do not know how to get the exception object. We tried this handle[HttpOperationFailedException]{ process(new Processor { def

Retry based on HTTP response codes

2013-03-27 Thread vss123
Hi, We use camel 2.10.3 with Scala DSL. We have route that does a http post. We want to retry based on the response code. For e.g. no retries for 4xx and 2 retries for 5xx We tried using handle[HttpOperationFailedException] but not sure how to get the response code within that. Can you help us

Re: Testing an http component

2013-03-14 Thread vss123
Hi, Can u provide little more guidance on how to write test without jetty. I see http4 unit test use LocalTestServer. But that's not bundled with camel-http4 jar I guess. Am I missing something? Thanks. -- View this message in context:

Re: File component/language: preMove only

2013-03-05 Thread vss123
Hi, We also tried using preMove to avoid multiple instances of Camel picking the same file. But that does not seem to work. When we run with more than one instance, We get following error. cannot begin processing file: GenericFile[sample1.xml] due to: Cannot rename file: GenericFile[sample1.xml]

Re: File component/language: preMove only

2013-03-05 Thread vss123
Sorry. The Camel version we use is 2.10.3. We have a drop-zone in a file system where the other systems drop xml files. With this project we use camel to pickup these files and do processing to communicate with few other systems. We want to run multiple instances of our project, so that we can