java - 没有 stub 的 RMI

标签 java web rmi

鉴于以下注释:
(找到here)

Note: As of the J2SE 5.0 release, stub classes for remote objects no longer need to be pregenerated using the rmic stub compiler, unless the remote object needs to support clients running in pre-5.0 VMs. If your application needs to support such clients, you will need to generate stub classes for the remote objects used in the application and deploy those stub classes for clients to download. For details on how to generate stub classes, see the tools documentation for rmic [Solaris, Windows]. For details on how to deploy your application along with pregenerated stub classes, see the codebase tutorial.

我的问题很简单: RMI 如何在没有 stub 的情况下工作?

最佳答案

它使用java.lang.reflect.Proxy 动态生成它们。请参阅java.rmi.server.UnicastRemoteObject 的Javadoc 的类序言。

关于java - 没有 stub 的 RMI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29262404/

相关文章:

java - 如何在Swing中读取和显示大文本文件?

java - 需要帮助以更好地理解 RMI

stub 上的 Java RMI ClassNotFoundException 发生在 Linux 而不是 Windows

javascript - 输入变化更新价格div

Git for Websites/post-receive/测试和生产站点分离

javascript - CSS - 使用悬停效果时无法将我的图像居中。

java - 如何将 GUI 添加到此 java 程序中?

java - Windows平台上socket连接异常为什么会有差异

java - 搜索 String 实例的 HashMap 值

java - 从一个数组复制元素并将值移动到另一个数组