User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,496 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,695 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 750 | Replies: 3
Reply
Join Date: Sep 2007
Location: Coimbatore, TN, India
Posts: 4
Reputation: technicalganesh is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
technicalganesh's Avatar
technicalganesh technicalganesh is offline Offline
Newbie Poster

File Transfering service

  #1  
Sep 18th, 2007
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?
Ganesh Kumar
Coimbatore, Tamil Nadu, India
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Location: Wellington, New Zealand
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: File Transfering service

  #2  
Sep 19th, 2007
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.
Reply With Quote  
Join Date: Dec 2006
Location: India
Posts: 2
Reputation: ram_west has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 0
ram_west's Avatar
ram_west ram_west is offline Offline
Newbie Poster

Re: File Transfering service

  #3  
Sep 12th, 2008
can u help on implementing this file transfer problem.. may be with some sample code in java
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: File Transfering service

  #4  
Sep 12th, 2008
we're not going to do your homework for you, thread hijacking homework kiddo.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 3:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC