Solved

Access files on Netwrok drive from JBoss

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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

739 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