Solved

A portablity problem

Posted on 1998-11-14
2
142 Views
Last Modified: 2013-11-22
I have to write a servlet that copies a text file from a remote server to the local server. The remote server can be anything - Unix, NT.
How that can be done without using URLs or NFS? I think my problem is the naming convention.
0
Comment
Question by:Gadi031698
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:Gadi031698
ID: 1227459
Edited text of question
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 20 total points
ID: 1227460
i don't think your problem is the naming convention, but the protocol for transfer of remote data ...
the remote machine manages its own File System and if you want to get some files from there, you will need some kind of server program (working there) that can handle your file request and return the appropriate file(s)

there are many standard protocols for data exchange (FTP, HTTP, even POP3 ...) and the URL object in Java is just a wrapper of the appropriate protocol so if you create HTTP URL object and call getInputStream, the URL object will send the appropriate HTTP request message and will handle the HTTP response message, giving you the pure data. so does FTP URL object ...
(there is no magic at all)

if you are working on LAN with NFS you can probably use File object with appropriate name ...

hope this helps
  heyhey
(if you really don't want to use URL objects, you have to write your own server app. clients should connect to the server (using Sockets) ask for particular file; the server will send them the file and they can save it ...)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
running on tomcat not jboss eap 7.0 3 52
TlistView is Really heavy on Android 3 43
netbeans can not run self signed app 8 37
Bitwise and to sum elements 2 52
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question