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

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;
};
主站蜘蛛池模板: 香港 | 满洲里市| 北票市| 湖南省| 清涧县| 澳门| 温泉县| 视频| 大渡口区| 霍州市| 景谷| 丰城市| 长阳| 崇明县| 铁岭县| 余庆县| 巨鹿县| 云南省| 河北省| 茌平县| 永福县| 扎兰屯市| 古田县| 石门县| 宿州市| 永登县| 西宁市| 三江| 团风县| 鄱阳县| 绥宁县| 健康| 上犹县| 探索| 图木舒克市| 玛沁县| 南投市| 乌海市| 佛学| 廉江市| 巴林右旗|