How can I access mapped Windows shares from my Java service?
The Java Service Wrapper has the ability to map network drives and printers for your services.
Windows makes it possible to map drives on network servers to local drive letters so they can be accessed by users as if they were a local drive. This is a very powerful feature of Windows which many applications take advantage of.
The problem, however, is that Windows is not very consistent about how it handles such mapped drives when accessed from a Windows Service. When the service is started manually, the drives will be available, but when the system is rebooted, the service will no longer be able to access them.
The Java Service Wrapper provides a simple way to tell the service to map network drives itself when they are not available. This means that they can be accessed reliably at any time.