> I am trying to process a large file (900MB). I need to send it to a
> HTTP remote location: B. But before I send it to B, I need to post some
> metadata to HTTP location A.
> 
> Because I do not want the content of the file to be sent to A, I move
> the file from the body to a header named XomBody. Unfortunately, when
> posting to A, the Camel HTTP producer converts all headers to string.
> Which causes the 900MB file to result into OutOfmemoryError.
> 
> How can I prevent this?

idea 1: store the original as property instead of header
idea 2: store the original in a database and the db-key as header (EIP
"Claim Check"
http://camel.apache.org/claim-check.html)



> I was hoping that by using a header filtering strategy to exclude all
> headers with name starting with Xom, this would resolve my problem.
> This does not seem to be the case. Looking at the HttpProducer, it
> appears that the filtering strategy is applied after type conversion.

idea 3: an intermediate processor which deletes all headers matching your
criteria?



Jan

Reply via email to