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

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;
};
主站蜘蛛池模板: 巴南区| 巴彦县| 钟祥市| 通化县| 临桂县| 朝阳区| 宿松县| 休宁县| 肥西县| 新建县| 本溪市| 体育| 紫云| 申扎县| 遵义县| 汉源县| 江油市| 宝丰县| 威信县| 巴青县| 海盐县| 白水县| 泰和县| 安国市| 柳江县| 嘉兴市| 自贡市| 固安县| 莱阳市| 保亭| 丹东市| 建始县| 屯门区| 长宁县| 涿鹿县| 凤台县| 民县| 绿春县| 夏河县| 滦平县| 太仆寺旗|