Solved

Access files on Netwrok drive from JBoss

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
This article runs through the process of deploying a single EXE application selectively to a group of user.
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

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