org.omg.IOP


1. Create an ORB without security

import org.omg.CORBA.ORB;
import org.omg.CORBA.ORBPackage.InvalidName;

public class CreateORB {

    public static void main(String[] args) {
        try {
            // Create an ORB instance without security
            ORB orb = ORB.init(args, null);
            // ...
        } catch (InvalidName e) {
            e.printStackTrace();
        }
    }
}

2. Create an ORB with security

import org.omg.CORBA.ORB;
import org.omg.CORBA.ORBPackage.InvalidName;

public class CreateORBWithSecurity {

    public static void main(String[] args) {
        try {
            // Create an ORB instance with security
            ORB orb = ORB.init(args, new org.omg.CORBA.ORBInitializers() {});
            // ...
        } catch (InvalidName e) {
            e.printStackTrace();
        }
    }
}

3. Get the ORB instance

4. Create a request

5. Set the request arguments

6. Invoke the request

7. Get the response