Windows services, RMI and permissions

S

simonboland

I have a Java RMI application which uses the JavaService tool to run
the RMI server as a windows service.

One of the methods in the RMI server is to save a file to a network
share drive, i.e. the client tells the server to save a file on another
PC's shared folder.

I've granted all the necessary permissions in the policy file. This is
the contents of my policy file.

grant {
permission java.security.AllPermission;
permission java.io.FilePermission "<<ALL
FILES>>","<<read,write,execute,delete>>";
};

The save method works fine when I don't execute the RMI server with
JavaService. However, when I use JavaService I receive an access
denied IOException when I try to save the file.

I'm wondering if anyone has used JavaService and encountered similar
issues? Is there a way I can overcome this and still use JavaService?
Or is it something Windows services won't allow in general.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top