More efficient Java remote calls than RMI

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.