944,147 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3361
  • Java RSS
Sep 18th, 2007
0

File Transfering service

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
technicalganesh is offline Offline
4 posts
since Sep 2007
Sep 19th, 2007
0

Re: File Transfering service

Running web services would be recommended.

FTP does not necessarily guarantee delivery and you can't be sure the file is downloaded unless you also download a flag file. Alternatively you could write your own FTP process, but thats rather a long way around the problem.

FTP would be faster than web services, unless you are not implementing an XML based web service? But 8MB isn't that big these days.

You do have a number of other solution options, we faced a similar issue, with really big files that was implemented using JSP triggers, FTP and transfer end files... but this is because they originally couldn't find any existing Java solutions that could handle large files... I can't think of anything that wouldn't now.

Or you could implement your own using Java socket connections... would it be faster?

I'd recommend using Web services.
Reputation Points: 20
Solved Threads: 5
Junior Poster
alpha_foobar is offline Offline
182 posts
since May 2005
Sep 12th, 2008
-2

Re: File Transfering service

can u help on implementing this file transfer problem.. may be with some sample code in java
Reputation Points: 5
Solved Threads: 0
Newbie Poster
ram_west is offline Offline
2 posts
since Dec 2006
Sep 12th, 2008
0

Re: File Transfering service

we're not going to do your homework for you, thread hijacking homework kiddo.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: XML generators
Next Thread in Java Forum Timeline: Local Variable not been Initialized





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC