2082 11

BIT401 ยท 2082 ยท 5 marks

Differentiate between RMI and CORBA.

Differentiate between RMI and CORBA. [5]

Advanced Java ProgrammingChapter 9: Distributed Programming with RMIRMI versus CORBA comparison

Model Answer: RMI vs CORBA

Key Differences

AspectRMICORBA
LanguageJava-onlyLanguage-independent
PlatformPlatform-dependentPlatform-independent
ProtocolJava Remote Method Protocol (JRMP)Internet Inter-ORB Protocol (IIOP)
ComplexitySimpler to implementMore complex
PerformanceFaster (optimized for Java)Slower (due to protocol overhead)
InteroperabilityLimited to Java systemsWorks across different languages and platforms

Detailed Comparison

RMI (Remote Method Invocation):

  • Designed specifically for Java-to-Java communication
  • Uses serialization for object marshalling
  • Tightly coupled to Java Virtual Machine (JVM)
  • Easier learning curve for Java developers
  • Better performance within homogeneous Java environments

CORBA (Common Object Request Broker Architecture):

  • Vendor-neutral, language-neutral standard
  • Supports multiple programming languages (C++, Python, Ada, etc.)
  • Uses Interface Definition Language (IDL) for service definition
  • Provides greater flexibility for heterogeneous systems
  • Suitable for enterprise-wide distributed systems with mixed technologies

When to Use

  • Use RMI: When building distributed systems entirely in Java
  • Use CORBA: When integrating systems written in different programming languages or across diverse platforms

Note: This answer is based on standard distributed systems concepts. Refer to your course materials for any institution-specific emphasis.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.