I go to the FTP each 2 mins to upload new files. I implemented it with java.util.Timer. But after some time - several days or even week - it stops without any exception and without any reason.
I found thread: Java unlimited thread stops after some time
But there is no particular solution in it. I read about ScheduledExecutorService, but as far as I understand - it's the same as Timer.
Please give me some ideas!