Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Access files on Netwrok drive from JBoss

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
ptjha
Asked:
ptjha
  • 2
1 Solution
 
CEHJCommented:
If there is a share visible on the network then just open a file on it

File f = new File("//machine/share/file");
0
 
ptjhaAuthor Commented:
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
 
CEHJCommented:
You could try using JCifs. Easiest to map a network drive permanently though
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now