Hi,
It looks like the input stream of the http client doesn't be cached.
Which version of Camel are you using?
Can you try out the Camel 2.0M1 to see if the issue is still there?
Willem
G.J. van de Streek wrote:
> I have implemented a route using multicast, what I want is to:
> 1: get a file from an http/xml service
> 2a: save the file
> 2b: split the file and forward to a queue
>
> I notice that only the first endpoint gets passed the body of the message.
> In my example the file is empty. If I change the order, the file is saved,
> but the splitter gets confused because it does not receive the contents of
> the file:
>
> public void configure() {
>
> from("timer://foo?fixedRate=true&delay=0&period=60000")
> .to("http://testserver.avisi.nl/integration/agents")
> .multicast()
> .to("direct:splitAgentsFile", "direct:saveAgentsFile")
> ;
>
> from("direct:saveAgentsFile")
> .setHeader(FileComponent.HEADER_FILE_NAME, "agents.xml")
>
> .to("file:///Users/streekgj/Desktop/filestore/asdf?append=false")
> ;
>
> from("direct:splitAgentsFile")
> .splitter(new XPathExpression("/agents/agent"))
> .to("activemq:example.A")
> ;
>
> I am probably like others confused with how the payload is handled. Any help
> and explanation is greatly appreciated.