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.