hi
i deployed a camel routing service in servicemix. here is my code
try {
context.addRoutes(new RouteBuilder() {
public void configure() {
from("http://localhost/testservice/resources/1").to("file:/target/");
} });
} catch (Exception e) {
e.printStackTrace();
}
try{
context.start();
Thread.sleep(5000);
context.stop();
}catch(Exception e){}
while the program(servicemix) is running it is invoked the web service
(http://localhost/testservice/resources/1) specified in the from() method,
and the output of the xml values are stored inside the target folder.
my xml output will be like this, <?xml version=1.1><root> <test>my sample
service </test></root>
Problem:
It creates multiple text file along with the xml value inside the targer
folder. when ever i execute the program it will put around 100 text files in
the target folder . i want to store it in a single text file. how do i
overcome this issue.
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Camel-Route-How-to-avoid-Multiple-files-in-target-folder-tp3244637p3244637.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.