Try a SNAPSHOT as we fixed something related to that. You can also load the content into memory using .convertBodyTo(byte[].class) or String.class just prior, then there is no problem either.
On Tue, Jan 14, 2014 at 10:47 AM, Zulio84 <[email protected]> wrote: > I update to version 2.12.2, but the problem still remains. > > With the debugger, I check the exchange content at point [2] (when the route > ends and the execution flow returns to the dispatcherProcessor), the body > type is "org.apache.camel.converter.stream.FileInputStreamCache" but the > file "/pathToFile/tmpFile.tmp" is already deleted. > > May it depend on the kind of invocation of the route that I do? > > I use: > > SpringCamelContext scc = ... // load from xml definition... > > ProducerTemplate pt = scc.createProducerTemplate(); // create the > producertemplate > > Endpoint ep = route.getEndpoint(); // take the first endpoint of the route > > Exchange ex = ep.createExchange(); // create the request exchange > > Exchange rt = pt.send(ep, ex); // invoke the route > > > > Thanks. > > > Zulio. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/StreamCaching-and-multiple-context-tp5745898p5745926.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
