Hi All I'm trying to learm RMI,so how to access or set up or change or edit your application persmissions?because I have an exception when i run the server class that creates the remote objects and register them,it says access denied,so i need to know how to set up the permissions for that app. Thanks for your time.
It's all done with policy files. Alas, there's surprisingly little information at http://java.sun.com that's easy to find on writing policy files. I looked around for a few minutes, and came up empty handed. But play around a little with policytool, a binary that comes bundled with the JDK. You'll at least see what access permissions are understood by the JVM that way.
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
Some of the security documentation is indeed surprisingly scattered -- I had to it from quite a few places when I was writing the security chapter for BJN (and the editor subsequently tried to cut my tables ). Assuming you have installed the JDK documentation, you can find
information about the policy file syntax in docs\guide\security\PolicyFiles.html -- the policytool can be pretty hard to use if you don't understand how the policy file works.
information about the permissions used in the JDK in docs\guide\security\permissions.html; there's also useful documentation in the permission classes' API javadoc
If you don't have the JDK documentation installed, click on the links to go to the online copy. - Peter [ April 12, 2002: Message edited by: Peter den Haan ]