Red Hat Training

A Red Hat training course is available for Red Hat Fuse

39.2. Stream Caching

In Apache Camel, different stream types like StreamSource, InputStream and Reader are commonly used in messaging for performance reasons and can be read only once. From Apache Camel 2.16 release, you can explicitly enable stream caching by invoking the StreamCaching() DSL method:
In Spring XML, you can set the attribute streamCache= 'true' on the route tag.
<route streamCache="true">
   <from uri="jbi:service:"/>
   <to uri="jbi:service:"/>