官术网_书友最值得收藏!

Running a remote client program

Between the hosts running the server and client programs, there can be a security manager installed. When you run either a server or client program with a security policy, the associated security policy definition needs to be specified with the instructions to grant security permissions to both the server and the client as they run. The following are example policy files to use with the server program:

  • For server.policy, the code is as follows:
grant codeBase "file:D://development//eclipseworkspace//CalculateApp//src//remote//" {
permission java.security.AllPermission;
};
  • For client.policy, the code is as follows:
grant codeBase "file:D://development//eclipseworkspace//CalculateApp//src//local//" {
permission java.security.AllPermission;
};
主站蜘蛛池模板: 安仁县| 吉木乃县| 大城县| 壶关县| 南昌县| 东明县| 庆元县| 开远市| 奎屯市| 昔阳县| 临汾市| 安化县| 偏关县| 平舆县| 喀什市| 定边县| 嘉鱼县| 阿尔山市| 河池市| 通辽市| 常德市| 房产| 清新县| 东海县| 汉源县| 集贤县| 盐亭县| 永仁县| 江北区| 宁化县| 通江县| 铜梁县| 鹤庆县| 青川县| 遵义县| 进贤县| 永吉县| 阿城市| 合山市| 津市市| 界首市|