I assume that issue would have been resolved now. In case it is not
change your source uri
from :
from("sftp://hostname/home/mydir/xmls?username=username=password;)
to:
from("sftp://hostname//xmls?username=username=password")
Suppose user login directory is: home/mydir/
and Polling directory is
>From Camel 2.16 onward it does not support absolute paths.
Can you change ftp.location.dir to a relative dir and verify ?
--
View this message in context:
With tempPrefix as well as with tempFileName a new connection is being
created for each file transfer.
--
View this message in context:
http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017p5768134.html
Sent from the
When we remove tempFileName from uri , FTP connections are not exhausted .
--
View this message in context:
http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017p5768097.html
Sent from the Camel - Users mailing list
We faced this issue in *camel 2.12*. I tested the same with *camel 2.14* .
Still I see connection being opened for each temp file.
Created below JIRA for same
CAMEL-8860 https://issues.apache.org/jira/browse/CAMEL-8860
--
View this message in context:
Temporary file name (Camel property : tempFileName )is creating new
connection for each file transfer.
--
View this message in context:
http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017p5768121.html
Sent from the Camel
So many connections remain in TIME_WAIT state while configuring a FTP
producer route with tempfilename property in FTP producer.
I am using
*Producertemplate.sendBodyAndHeader(producerURI, Exchange.FILE_NAME,
fileName)* to write file to destination.
*Producer URI* :