RMI versus Other Remote Services Solutions

When it comes to accessing remote services in J2EE, RMI is one potential solution. There are of course other remote components available: Enterprise Java Beans, servlets, network socket programs, and Web Services using JAXM. The question arises, Where does RMI fit into this picture?

In terms of functionality and ease of use, RMI is a step up from programming an application using network sockets. RMI is relatively simple to use and offers a natural syntax and a short learning curve for the Java developer. RMI also offers a very low-cost solution that requires very little system resources.

But RMI has limitations, both in performance and usage. If using RMI with activation, there can be some delay in starting ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.