Solved

A portablity problem

Posted on 1998-11-14
2
143 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

729 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