Hi,
one of my application uses the java timer class and ftp files in a remote server after each interval. in each interval , i create a new ftp object (same name object)to connect to the remote server.
suppose i am transferring files to the server and at that time, the next interval time occurs. This new interval will create a new ftp object with the same object name.
i have synchronized the code block over the ftp object so that the put method can't be called samultaneously.
[i][b]will it be ok and thread-safe? [/b][/i]
please reply.