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
Stephan

-----Original Message-----
From: Lars Ködderitzsch [mailto:rookie_...@web.de] 
Sent: Mittwoch, 11. März 2015 16:35
To: users@camel.apache.org
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,
Lars



--
View this message in context: 
http://camel.465427.n5.nabble.com/Marshalling-directly-to-endpoints-OutputStream-tp5764013.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to