- 3
- 0
- 约 32页
- 2015-08-15 发布于湖北
- 举报
分布式计算原理与应用DistributedComputing第八章课件.ppt
Distributed Computing, M. L. Liu Advanced Remote Method Invocations M. L. Liu RMI – Advanced topics The Java RMI API has a rich collection of features. We will look at some of RMI’s more interesting advanced features, namely: stub downloading security manager client callback. Although these features are not inherent to the distributed object paradigm, they are helpful mechanisms and can be useful to application developers. The Java RMI Architecture Java RMI Client Server Interaction RMI Stub Downloading RMI is designed to allow stubs to be made available to the client dynamically. Doing so allows changes to be made in the remote methods without affecting the client program. The stub can be filed with an web server and be downloaded using HTTP. Security measures are needed to prevent both the client side and the server side: A java security policy file needs to be set on the server host and also on the client host. A Java Security Manager should be instantiated in both the client and server programs. Stub downloading If the stub is to be downloaded from a remote server, transfer the stub class to the appropriate directory on that server, e.g., /~mliu/www, and make sure that the access permission to the file is set. When activating the server, specify command options: The java.policy file The RMI security manager does not permit network access. Exceptions can be made via the specification in a java.policy file. grant { // permits socket access to all common TCP ports, including the default // RMI registry port (1099) – need for both the client and the server. permission .SocketPermission *:1024-65535, connect,accept,resolve; // permits socket access to port 80, the default HTTP port – needed // by client to contact an HTTP server for stub downloading permission .SocketPermission *:80, connect; }; This file can be filed in the same directory as the server class file. When activiating the client, a java.policy file also should be
您可能关注的文档
最近下载
- 园区保安服务项目.docx VIP
- 高等教育《管理学》课后习题答案解析.docx VIP
- 25HNTJ026 锯齿形装配式混凝土剪力墙结构施工图制图规则及构造详图 T_HNKCSJ 025-2025.docx VIP
- YY/T 1987-2025采用脑机接口技术的医疗器械 术语.pdf
- 2024年广安职业技术学院高职单招(英语/数学/语文)笔试题库含答案解析.docx VIP
- 2024年广安职业技术学院高职单招(英语/数学/语文)笔试题库含答案解析.docx VIP
- 25HNTJ025 刚节点装配式混凝土框架结构施工图制图规则及构造详图 T_HNKCSJ 024-2025.docx VIP
- 2023年河南法院书记员招聘考试真题 .pdf VIP
- 25HNTJ025 低能耗集成装配式多层房屋构造 T_HNKCSJ 023-2025.docx VIP
- DB11_T 1312-2025 预制混凝土构件质量控制标准.docx VIP
原创力文档

文档评论(0)