我的要求是
我有两台机器,客户端和服务器。在服务器上只有一个端口是打开的(不应该是 JNDI 端口)。 Client 需要引用部署在 Server 中的 EJB 远程对象,以便它可以调用这些 EJB 对象上的方法。
这里我计划在服务器上的开放端口上进行客户端和服务器之间的 RMI 通信。得到调用后,服务器会将EJB3对象返回给客户端。
这是我的问题
- RMI 是否允许将远程 EJB3 引用返回给客户端?
- 如果是,一旦 EJB 引用转发给客户端,如果客户端调用远程 EJB 中的方法,则使用哪个端口进行此通信?因为服务器上只有一个端口打开?
- 这里使用 RMI 或 EJB 是否可以用作通信?我在网上搜索过,但无法将 EJB 绑定(bind)到端口。
- 能否在 Glassfish 中部署 RMI 应用程序?
谢谢 德克
最佳答案
Does RMI allow to return remote EJB3 references to client?
是的。
If yes, once EJB reference forwarded to the client, if client calls a method in remote EJB, using which port this communication takes place?
EJB 导出到哪个 Piet。
Becausue only one port open on server?
嗯?
Here is it fine to go with RMI or EJB can be used as communication?
它们是一样的。这个问题毫无意义。
I have searched in net, but its not possible to bind an EJB to a port.
这取决于很多事情,例如您是否使用 RMI/IIOP 以及可能在特定容器中。
Can RMI application deployed in Glassfish?
是的。
关于ssl - RMI 返回 EJB 远程对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23968455/