Hi,
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.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang