camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: StreamCaching and multiple context
Date Tue, 14 Jan 2014 13:03:35 GMT
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 <giulianopintori@hotmail.com> 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: cibsen@redhat.com
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

Mime
View raw message