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

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;
};
主站蜘蛛池模板: 桐城市| 正安县| 乌拉特前旗| 溧水县| 琼海市| 格尔木市| 长宁县| 新建县| 定远县| 罗甸县| 清远市| 贵溪市| 怀仁县| 昭通市| 罗田县| 长宁区| 筠连县| 湖北省| 宁晋县| 汝南县| 西宁市| 南丰县| 大悟县| 万盛区| 桓仁| 清流县| 临沧市| 张掖市| 邢台县| 翁牛特旗| 封丘县| 中牟县| 梅河口市| 宁津县| 年辖:市辖区| 伊宁市| 海林市| 东宁县| 牙克石市| 新竹市| 吴堡县|