Page Created :
CAMEL :
Stream caching
Stream caching has been created by Gert Vanthienen (Mar 12, 2009). Content:Stream cachingWhile stream types (like StreamSource, InputStream and Reader) are commonly used in messaging for performance reasons, they also have an important drawback: they can only be read once. In order to be able to work with message content multiple times, the stream needs to be cached. By default, streams are caching in memory. In Camel 2.0, large stream messages (over 64 Kb) will be cached in a temporary file instead – Camel itself will handle deleting the temporary file once the cached stream is no longer necessary. Using stream cachingImplicitly enabled for multicast and dead letter channelSome EIPs require that the message content can be read multiple times. Stream caching will be automatically enabled when using these EIPs in your routes:
Explicitly configure stream cachingIn Apache Camel, you can explicitly enable stream caching in a route with the streamCaching DSL method: from("direct:a").streamCaching().to("mock:a");
|
Unsubscribe or edit your notifications preferences