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 Mon, 13 Jan 2014 19:02:20 GMT
I think that delete the file at [2] has been fixed in newer Camel
release. So try upgrading.


On Mon, Jan 13, 2014 at 6:03 PM, Zulio84 <giulianopintori@hotmail.com> wrote:
> 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.



-- 
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