/cobra-rmi-iiop

An example of the Distributed Object Paradigm and Remote Method Invocation in Cobra protocol.

Primary LanguageJava

Cobra RMI-IIOP example app

This repository is Proof of concept (POC) of the Distributed Object Paradigm and Remote Method Invocation in distributed applications. For example Xorg, Gnome, KDE and Java Beans api. It's an alternative to SOAP protocol. This application allows you to manage your phonebook using spring gui and command line.

About RMI-IIOP

RMI-IIOP (read as "RMI over IIOP") denotes the Java Remote Method Invocation (RMI) interface over the Internet Inter-Orb Protocol (IIOP), which delivers Common Object Request Broker Architecture (CORBA) distributed computing capabilities to the Java platform.

More info :

Building

  1. Compile project files
  2. Go to bin/ directory and run rmic -iiop zad1.PhoneDirectory command to generate exportObjects stubs
  3. Define JNDI configuration presented below using jndi.properties file or in JVM settings
    java.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory
    java.naming.provider.url=iiop://{hostName}:{port} // eg. localhost:3333
    
    Configuration should be placed in your bin/ directory

Running

  1. Start COS naming ORB server with command orbd -ORBInitialPort {portNumber} from your bin/ directory
  2. Run server and client with JNDI configuration (There's client GUI too...)