什么是网络中的骨架?
在 J2EE 应用程序中,客户端 (应用程序、JSP、servlet、 JavaBeans)通过以下方式访问实体bean 他们的远程接口。因此,每一个 客户端调用可能路由 通过网络存根和骨架, 即使客户和企业 bean 位于相同的 JVM、操作系统或 机器。
什么是网络骨架?某种代理?我理解存根是一次性连接,这是正确的吗?
In a J2EE application, clients
(applications, JSPs, servlets,
JavaBeans) access entity beans via
their remote interfaces. Thus, every
client invocation potentially routes
through network stubs and skeletons,
even if the client and the enterprise
bean are in the same JVM, OS, or
machine.
What's a network skeleton? Some kind of proxy? I understand a stub to be a single use connection, is that correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 RMI 术语中,骨架是生成的对象,它位于服务器上,接受来自网络的调用,对它们进行解组,然后将它们转发到业务对象。
所以....
不过,这是一个相当过时的术语,因为这种东西比早期java中的自动化程度要高得多,在早期java中,必须显式生成骨架。
In RMI lingo, the skeleton is the generated object that sits on the server, accepts calls from the network, unmarshals them, and forwards them on to the business object.
So....
It's a rather antiquated term, though, since this sort of stuff is much more automated than it used to be in early java, where skeletons had to be explicitly generated.
当谈论 RPC 时,存根和骨架分别是客户端/服务器上远程调用过程/方法的代理。
客户端调用存根,该存根向服务器发送协议请求。请求到达服务器的框架,然后调用导出的方法。
通常,存根和骨架是由某些工具根据某些 IDL 描述自动生成的
When talking about RPC, stubs and skeletons are proxies for the remotely called procedure/method on the client/server respectively.
A client invokes a stub, that stub sends a protocol request to the server. The request arrives to the skeleton at the server, which then invokes the exported method.
Typically, stubs and skeletons are autogenerated from some IDL description by some tool