java RMID example
I want to experiment with Activatable objects in RMI. Is there a simple example somewhere that works? I'm trying to use Oracle's tutorial but I get java.security.AccessControlException开发者_开发问答: access denied (java.net.SocketPermission 127.0.0.1:1098 connect,resolve)
Try to add this as first argument to your java-vm
-Djava.security.policy=rmi.security
example of rmi.security (could be more specific, created with policytool)
grant {
permission java.security.AllPermission;
};
精彩评论