开发者

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;
};
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜