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

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;
};
主站蜘蛛池模板: 漯河市| 巴楚县| 黔西县| 洛宁县| 上栗县| 万全县| 军事| 台中县| 闸北区| 南郑县| 襄樊市| 石台县| 嵩明县| 饶河县| 莒南县| 西青区| 临泉县| 上饶市| 平顶山市| 慈溪市| 江陵县| 新密市| 桃江县| 句容市| 温泉县| 浏阳市| 乐安县| 南昌县| 内江市| 彰化县| 翁源县| 大石桥市| 涟水县| 陇西县| 屏东市| 普兰县| 贡嘎县| 台东县| 通城县| 保德县| 章丘市|