Maybe you can provide us with some more detailed information on what you
are trying to achieve, because it looks like you're calling a RESTfull
webservice with a static id value, and are then surprised when subsequent
responses are all the same, which is exactly what the service should do.
If you want to periodically poll a webservice, then use a quartz endpoint
to generate events that trigger the http consumer, and file producer.
Geert.
>
> HI,
> I tried to fetch the output using following code what u gave,
>
> from("http://localhost/testservice/resources/1")
> .setHeader(FileComponent.HEADER_FILE_NAME, constant("output.txt"))
> .to("file:/target/")
>
>
>
> But in Output.txt file have put the same record again and again ( its
> around
> 30,000 line )
>
>
> <?xml version="1.0" encoding="UTF-8"
> standalone="yes"?><abc><xmlcontent><address>Chennai</address><name>Ramya</name><mobileno>987878</mobileno><phoneno>43423</phoneno><vehicle_colour>red</vehicle_colour><vehicle_no>TN1456</vehicle_no><vehicle_type>maruthi</vehicle_type></xmlcontent></abc><?xml
> version="1.0" encoding="UTF-8"
> standalone="yes"?><abc><xmlcontent><address>Chennai</address><name>Ramya</name><mobileno>987878</mobileno><phoneno>43423</phoneno><vehicle_colour>red</vehicle_colour><vehicle_no>TN1456</vehicle_no><vehicle_type>maruthi</vehicle_type></xmlcontent></abc><?xml
> version="1.0" encoding="UTF-8"
> standalone="yes"?><abc><xmlcontent><address>Chennai</address><name>Ramya</name><mobileno>987878</mobileno><phoneno>43423</phoneno><vehicle_colour>red</vehicle_colour><vehicle_no>TN1456</vehicle_no><vehicle_type>maruthi</vehicle_type></xmlcontent></abc><?xml
> version="1.0" encoding="UTF-8"
> standalone="yes"?><abc><xmlcontent><address>Chennai</address><name>Ramya</name><mobileno>987878</mobileno><phoneno>43423</phoneno><vehicle_colour>red</vehicle_colour><vehicle_no>TN1456</vehicle_no><vehicle_type>maruthi</vehicle_type></xmlcontent></abc>
>
>
>
> Pls give the sample code and give ur valuable feedback for this..
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/Camel-Route-How-to-avoid-Multiple-files-in-target-folder-tp3244637p3245001.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
>