Here we show part of the main program for the object server. Note the import statements that let us reference the CORBA classes defined as a part of the JDK.
Our first job, initializing the ORB, is easy - we just need to call the static "init" method defined on the ORB class. This method accepts two arguments: any command line arguments that were passed to the server program itself, and a Java properties object which you can use to configure some ORB characteristics. We set the second argument to null to indicate that we didn't need to configure these properties. The command-line arguments also let you configure ORB properties, such as the port on which the ORB listens for method requests. We really won't use them, either - we coded like this so it will work if we do decide to pass arguments on the command line.
Next, this code creates an instance of the MeetingServant remote object. We must next connect to object to the ORB - that makes the object callable from outside of the server virtual machine.