camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Passing input stream to the route
Date Mon, 13 Feb 2012 15:05:24 GMT

You may get some idea by checking out the code of StreamComponent.
But you still need to find a way to tell the StreamConsumer to pick up 
the Stream when your callback API is called.
Maybe you can pass let the callback all the StreamConsumer process 
method directly when the stream is ready.
In this way you don't need to use the ProducerTemplate to send the 
lines to the camel route.

On Mon Feb 13 18:23:49 2012, Henryk Konsek wrote:
>> In this case you may consider to extends the StreamComponent and pass the
>> csvDataStream into it.
> Hi Willem. Thank you for the reply.
> Unfortunately I don't get your idea :) Could you elaborate it a little
> bit more? Maybe you could also provide a route / code example.
> Kind regards.

Blog: (English) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang 

View raw message