You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Aida <ai...@gmail.com> on 2013/07/05 11:34:09 UTC

[FTP Producer] Setting soTimeout for producerTemplate

Hello,

I'm writting because I need to set a soTimeout when producing files to a FTP
Server. I need this because when the FTP server has a big load of work,
sometimes it doesn´t respond so the producerTemplate remains waiting forever
(with a FTP connection that remains open).

I think that the problem has something to do with [1] and that the solution
is to set a soTimeout to the endpoint and I do, but I´m not able to make it
work. Because of this I wanted to ask if the soTimeout parameter can be used
for produce files in FTP servers.

I have checked that my endpoint is built with this param and debugging I see
that the FTPEndpoint that is built receives it. Despite of this, when I
reproduce the scenary (I make camel to try producing a file to an FTP that
will connect but won´t never respond) setting a soTimeout of 5 seconds,
after some minutes the template is still waiting for a response.



[1]
http://javaeesupportpatterns.blogspot.com.es/2011/04/javanetsocketinputstreamsocketread0.html



--
View this message in context: http://camel.465427.n5.nabble.com/FTP-Producer-Setting-soTimeout-for-producerTemplate-tp5735199.html
Sent from the Camel - Users mailing list archive at Nabble.com.