开发者

Unicast Vs Portable Remote Object

开发者 https://www.devze.com 2023-03-02 01:18 出处:网络
What is the basic difference between java.rmi.server.UnicastRemoteObject and java.rmi.PortableRemoteObject.

What is the basic difference between java.rmi.server.UnicastRemoteObject and java.rmi.PortableRemoteObject.

I know that one is used for JRMP and the other for IIOP,but can anyone explain it in a lay man's language.I'm new to J开发者_运维百科ava.Also can we use a Protable Remote Object for JRMP? If not,why?


http://download.oracle.com/javase/6/docs/technotes/guides/rmi-iiop/rmi_iiop_pg.html

When do I use UnicastRemoteObject vs PortableRemoteObject?

UnicastRemoteObject should be used as the superclass for the object implementation in RMI programming. PortableRemoteObject should be used in RMI-IIOP programming. If PortableRemoteObject is used, you can switch the transport protocol to either JRMP or IIOP during runtime.

0

精彩评论

暂无评论...
验证码 换一张
取 消