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.
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.