org.omg.CORBA_2_3


1. Create and Initialize an ORB

import org.omg.CORBA.ORB;

public class ORBExample {

    public static void main(String[] args) {
        // Create an ORB instance
        ORB orb = ORB.init(args, null);

        // Use the ORB to perform operations...
        // ...

        // Shutdown the ORB when done
        orb.shutdown(false);
    }
}

2. Create and Register an Object Reference

import org.omg.CORBA.ORB;
import org.omg.CORBA.Object;

public class ObjectReferenceExample {

    public static void main(String[] args) {
        // Create an ORB instance
        ORB orb = ORB.init(args, null);

        // Create an object reference
        Object objRef = orb.string_to_object("MyObject");

        // Register the object reference with the ORB
        orb.register_initial_reference("MyObject", objRef);

        // Use the object reference to perform operations...
        // ...

        // Release the object reference
        objRef.release();
    }
}

3. Create and Invoke a Method on a Remote Object

4. Handle Exceptions in CORBA

5. Use the IDL Compiler to Generate Java Stubs and Skeletons

6. Use the ORB to Create a Client

7. Use the ORB to Create a Server

8. Use the Portable Object Adapter (POA)

9. Use the Dynamic Invocation Interface (DII)

10. Use the Asynchronous Messaging Service (AMS)

11. Use the CORBA Event Service (CES)