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

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;
};
主站蜘蛛池模板: 永仁县| 太和县| 基隆市| 中方县| 桐城市| 丽水市| 株洲县| 鄂伦春自治旗| 九龙县| 台前县| 廉江市| 安图县| 昌乐县| 浦东新区| 佛山市| 蓬安县| 临泉县| 句容市| 文化| 云梦县| 曲周县| 雷波县| 交口县| 彰化市| 毕节市| 华容县| 雷波县| 云浮市| 句容市| 新平| 绍兴市| 沈丘县| 崇明县| 山阳县| 卢龙县| 南宫市| 南宫市| 军事| 邮箱| 江油市| 潼南县|