开发者

java RMID example

开发者 https://www.devze.com 2023-02-24 00:48 出处:网络
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开发者_开发问答

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

精彩评论

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

关注公众号