Solved

Access files on Netwrok drive from JBoss

Posted on 2007-12-05
3
268 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now