*
The moose likes Distributed Java and the fly likes Policy files and examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Policy files and examples" Watch "Policy files and examples" New topic
Author

Policy files and examples

Con Lu
Ranch Hand

Joined: Aug 27, 2002
Posts: 38
When running an RMI example
1) Do you have to specify a security policy file for
BOTH the client and server machines
2) If so, do you run the server and client by commands such as the following?
java -Djava.security.policy=c:\DirOnServer\wideopen.policy myRMIServer
java -Djava.security.policy=c:\DirOnClient\wideopen.policy myRMIClient
3) Do the commands above have to refer to policy files on their own machines or if they don't how do you refer to a policy file on another machine?
I am getting very confused, and any help would be much appreciated!
By the way, I am having problems getting examples on the Internet (such as Sun's)to work. Many examples seem to brush over compilation and setup (or where to put certain files etc)- especially those examples concerning web-servers, dynamic class loading, and security files. Does anybody have links to good step-by-step examples / resources?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Policy files and examples
 
Similar Threads
Do we need a policy file and a security manager at all?
RMI problem
EJB Deployment
RMI Exception
It fails in the call RMI of Server.