I have the same issue.
There are some temporary files that aren't deleted.
This an example of my code:
private class ProcessorSend implements Processor {
public void process(Exchange exchange) throws Exception {
//... some operations
String myEndpoint = "http://localhost:8191/ws/echoService";
HttpComponent httpComponent = (HttpComponent)
getContext().getComponent("http");
httpComponent.createEndpoint(myEndpoint);
Endpoint endpoint = getContext().getEndpoint(myEndpoint);
try {
Producer producer = endpoint.createProducer();
producer.start();
// no temporary file in ${java.io.tmpdir}/camel-xxxx/
producer.process(exchange);
// one cos*.tmp file in ${java.io.tmpdir}/camel-xxxx/
producer.stop();
} catch (Exception e) {
//... report exception
}
// ... other operation
}
}
I also tried to close the stream from the exchange.getIn() but non change.
The temporary file are deleted only when I stop the application.
--
View this message in context:
http://camel.465427.n5.nabble.com/http-not-cleaning-up-tmp-files-when-exchange-is-stopped-tp4269124p5758865.html
Sent from the Camel - Users mailing list archive at Nabble.com.