I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. I have a choice of the following solutions,
1. Running a Web Service in Windows server and whenever the file has to be copied to it the java program should call that service and transfer the byte stream.
2. Java servlet program on both side to transfer via FTP.
Which one will be better in performance? Can anybody help me to resolve this?