Hi, I've the following scenario: Inside a CamelContext with enabled streamcaching I've this Route:
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring" streamCache="true"> <route streamCache="true" id="my-route"> <from uri="jetty:http://localhost:8903/MyApp" /> (1) <process ref="dispatcherProcessor" /> </route> </camelContext> Inside the dispatcherProcessor I analize the request, and I load and execute a custom route from xml definition, (also the route context have enabled streamcaching), inside the route i call a remote url, then i send back the response throw the system. Custom Route Example: <camelContext xmlns="http://activemq.apache.org/camel/schema/spring" streamCache="true"> <route> <from uri="direct:start"/> <to uri="http4://remoteUrl"/> </route> (2) </camelContext> I defined (i'm using camel-core 2.12.1) the StreamCachingStrategy for handle big messages, so when i receive the response from the remote url (inside the route I loaded...) Camel creates the tempFile for the stream, but also it deletes the tempFile (at point [2]), correctly, but before i sent the response back to the client inside the principal context (at point [1]). How can I manage thi situation? I need to use streamCaching, i don't want to buffer messages. Any idea??? Thanks! Zulio. -- View this message in context: http://camel.465427.n5.nabble.com/StreamCaching-and-multiple-context-tp5745898.html Sent from the Camel - Users mailing list archive at Nabble.com.