什么是RMI的rmic? [英] What is rmic in RMI?

查看:120
本文介绍了什么是RMI的rmic?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么是RMI中的rmic以及它如何为我创建代理..

I like to know what is rmic in RMI and how does it create proxies for me..

推荐答案

回答你的问题问题, rmic [ Solaris Windows ]是Java RMI编译器,它使用JRMP或IIOP协议为远程对象生成存根,骨架,绑定。同时生成OMG IDL。关于如何,你的问题有点模糊,但答案可能是符合JRMP协议或IIOP协议或CORBA IDL规范。

To answer your question, rmic [Solaris, Windows] is the Java RMI compiler and it generates stubs, skeletons, ties for remote objects using either the JRMP or IIOP protocols. Also generates OMG IDL. Regarding the how, your question is a bit vague but the answer might be something like it complies to the JRMP protocol or IIOP protocol or CORBA IDL specification.

请查看提供的链接,了解这些不同概念的描述。如果这听起来像中文,你应该看看 RMI教程。本教程的第一章介绍了RMI概念。

Have look at the provided link(s) for a description of these various concepts. If this sounds like Chinese to you, you should probably look at the RMI tutorial. The first chapter of the tutorial covers RMI concepts.

另请注意(来自教程):

Also note that (from the tutorial):


使用之前的版本Java平台标准版5.0,通过使用rmic编译器,需要一个额外的步骤来构建存根类。但是,不再需要此步骤。

With versions prior to Java Platform, Standard Edition 5.0, an additional step was required to build stub classes, by using the rmic compiler. However, this step is no longer necessary.

因此,如果您的RMI服务器不必支持在5.0之前的VM上运行的客户端,你实际上不需要担心 rmic

So if your RMI server doesn't have to support clients running on pre-5.0 VMs, you actually don't need to worry about rmic.

另一个很好的入门资源是...... 使用Java RMI入门 ,RMI的Hello World示例。

Another good resource to get started is... Getting Started Using Java RMI, a Hello World sample for RMI.

如果您想获得更多信息,请查看远程方法调用规范

If you want to get more information, check out the Remote Method Invocation spec.

这篇关于什么是RMI的rmic?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆