File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to access a file on another server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to access a file on another server?" Watch "How to access a file on another server?" New topic

How to access a file on another server?

Donna Reschke

Joined: Jul 05, 2001
Posts: 23
I have load balanced production servers. I have been told that our web farm set up a "shared" folder on both of these servers, meaning I could access this folder from both servers. What happens is the user logs on to server A and wants to view a file. If the file does not exist on server A, I then need to check server B to see if it exists there in the shared folder. I do not know how to do this. Can anyone help me?
Thanks, Donna
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

The easiest thing to do would be to just use your server operating system's capabilities: shared drives on Windows, NFS on UNIX/Linux, etc.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: How to access a file on another server?
Similar Threads
How to access a shared folder on Windows system from Java application on Unix
Cannot create JDBC driver of class '' for connect URL 'null'
rsync in linux to scp
Regarding SMB protocal