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

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;
};
主站蜘蛛池模板: 丰城市| 龙岩市| 微博| 遵义县| 当阳市| 温州市| 泗水县| 三门县| 抚远县| 兴隆县| 靖边县| 雅安市| 凉城县| 克拉玛依市| 土默特左旗| 醴陵市| 浮梁县| 兴城市| 罗城| 宜章县| 白城市| 文化| 许昌市| 黄龙县| 苏尼特左旗| 金堂县| 黎城县| 南丰县| 西峡县| 绵竹市| 商河县| 双峰县| 确山县| 许昌市| 当阳市| 平潭县| 太湖县| 益阳市| 江北区| 佛山市| 靖江市|