camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siano, Stephan" <>
Subject RE: Marshalling directly to endpoints OutputStream
Date Thu, 12 Mar 2015 09:45:07 GMT
Hi Lars,

No, but if it is only about memory you can enable stream caching on the route. In that case
the data will be sent to a StreamCache (and that will be stored in the file system if the
data is too big).

Best regards

-----Original Message-----
From: Lars Ködderitzsch [] 
Sent: Mittwoch, 11. März 2015 16:35
Subject: Marshalling directly to endpoints OutputStream

My routes are using custom object trees which are being marshalled using a
custom DataFormat and outputted to file endpoints.

Contrary to my naiive expectation this does not lead to the DataFormat
directly outputting to the endpoints underlying OutputStream but always to
an intermediary ByteArrayOutputStream, thus manifesting in memory.

Due to various reasons (e.g. memory usage) this is undesired.

Is there a way to correlate endpoints and DataFormats directly so that
marshalling is able to directly output into the target stream?

Many thanks,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message