The general idea for processing remote calls is as follows:
1. cross-platform WebService, cross-firewall, but sorry, the XML-based speed is slow
2. RMI (Java)/remoting (. NET) platform-related, based on binary serialization, fast.
Spring provides the third option: lightweight HTTP invoker
There are four solutions for spring remoting support:
1. The traditional RMI. Spring simplifies RMI development: When the JNDI is not started, it will automatically start/support the release of common objects as RMI services.
2. Http invoker. Http + serialization. disadvantage: callback is not supported.
3. Caucho-basedHessian. Http + serialization.
4. Caucho-basedBurlap. Http + XML.
Do you remember Caucho? Companies that produce resin.
In the past, there were so many remote calls, but they must be based on interfaces. It may be more useful to mark which methods can be publish as remote methods on common classes.