- Distributed Computing in Java 9
- Raja Malleswara Rao Pattamsetti
- 101字
- 2021-07-02 21:02:35
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;
};
推薦閱讀
- Java程序設計實戰教程
- AngularJS Testing Cookbook
- Python for Secret Agents:Volume II
- Java Web及其框架技術
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Java程序員面試算法寶典
- Ray分布式機器學習:利用Ray進行大模型的數據處理、訓練、推理和部署
- Mastering Unity Shaders and Effects
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Scratch從入門到精通
- Android技術內幕(系統卷)
- 征服C指針(第2版)
- MongoDB Cookbook
- Natural Language Processing with Python Cookbook
- 計算機輔助設計與繪圖技術(AutoCAD 2014教程)(第三版)