When to Use RMI

RMI is applicable in situations in which local applications require services or methods available from remote locations.

You should use RMI in Java-to-Java architectures; that is, your local applications and the remote methods you want to invoke are both coded in Java. This strategy has the benefits of Java's inherent code portability and WebLogic's built-in security model, efficient garbage collection, thread management, and WebLogic Server's optimized t3–protocol-driven communications.

You should use RMI-IIOP in architectures if your local Java application must interface with applications coded in other languages. This strategy adds a degree of robustness and flexibility to your application.

If your applications are CORBA, you ...

Get BEA WebLogic Server™ 8.1 Unleashed 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.