[引用自spring的ppt]spring remote技术比较
Hessian
Lightweight binary protocol by CauchoHTTP-basedUses custom serialization mechanismSupport for several platformsBurlap
XML-based lightweight protocol (Caucho)HTTP-basedUses custom serialization mechanismKnown support only for JavaProblematic when using for example Hibernate lazy loading without OSIVSpring HttpInvoker
Spring-based Java-to-Java remotingHTTP-basedUses Java serialization just like RMIEasy to setup(no HTTP tunneling as with RMI)HttpInvokerServiceExporterHttpInvokerProxyFactoryBeanRMI
Plain-and-simple RMIWith some additions:RMI-IIOP / CORBA
Ability to use RMI-IIOP implementation from vendor (see demo)Of course with the need for stubs and skeletonsWith a Spring-based client, still no need for java.rmi.RemoteJndiRmiServiceExporterJndiRmiProxyFactoryBeanWhen to use what
Both client and server under control