Solved

Access files on Netwrok drive from JBoss

Posted on 2007-12-05
3
270 Views
Last Modified: 2013-12-02
I have a Java application running on JBoss 4.0.4 on Windows environment. The application needs to access/launch some files on a network drive on the App Server (the network drive is file server on NAS).
How can the application access these files? What configuration needs to be done? Any help is appreaciated.
0
Comment
Question by:ptjha
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 20415982
If there is a share visible on the network then just open a file on it

File f = new File("//machine/share/file");
0
 

Author Comment

by:ptjha
ID: 20416048
Once the system is booted, the drive authentication is already done. But however if we need to go through the windows authentication for such a case, how do we go about it?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20416076
You could try using JCifs. Easiest to map a network drive permanently though
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

This article runs through the process of deploying a single EXE application selectively to a group of user.
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

808 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