- 1
- 0
- 约1.15万字
- 约 32页
- 2017-06-07 发布于湖北
- 举报
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
您可能关注的文档
- 投资学第2讲金融工具.ppt
- 动物克隆技术研究的历史、现状和展望.pdf
- 托福写作和美国学术写作的区别-智课教育旗下智课教育.pdf
- 儿童朴素物理学的错误概念与影响概念转换的因素.pdf
- 二叉树的存储和遍历.ppt
- 二叉树类模板的设计和实现.docx
- 往届浙江省高校计算机一级考试操作题与解答.doc
- 二次回路基础知识和高压柜二次回路分析.ppt
- 微电网多目标动态优化调度模型和方法_洪博文.pdf
- 二级--招聘和配置历年真题练兵.doc
- 2025-2026学年天津市和平区高三(上)期末数学试卷(含解析).pdf
- 2025-2026学年云南省楚雄州高三(上)期末数学试卷(含答案).pdf
- 2025-2026学年甘肃省天水市张家川实验中学高三(上)期末数学试卷(含答案).docx
- 2025-2026学年福建省厦门市松柏中学高二(上)期末数学试卷(含答案).docx
- 2025-2026学年广西钦州市高一(上)期末物理试卷(含答案).docx
- 2025-2026学年河北省邯郸市临漳县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省石家庄二十三中七年级(上)期末历史试卷(含答案).docx
- 2025-2026学年海南省五指山市九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省唐山市玉田县九年级(上)期末化学试卷(含答案).docx
- 2025-2026学年河北省邢台市市区九年级(上)期末化学试卷(含答案).docx
原创力文档

文档评论(0)