CORBA 2.6.1 Programmer's Guide for Java
1. Define the CORBA object's interface in a CORBA Interface Definition Language (IDL) file.
2. Compile the IDL file using the NonStop CORBA IDL compiler. Compiling the IDL file generates the files specified in the CORBA IDL to
Java Language Mapping specification. For an interface
IFace, the following Java source files would be generated:
IFace.java — signature interface
IFaceOperations.java — operations interface (also contains signatures)
IFaceHelper.java — marshaling and Any support, etc.
IFaceHolder.java — parameter passing support
_IFaceStub.java — client stub
IFacePOA.java — server skeleton
3. Create the client application:
The client application code uses the CORBA object, so it uses the code produced by the IDL compiler.
Compile the client stub code produced by the IDL compiler, producing a class file.
Compile the client application code, producing class files.
4. Create the server:
Compile the server skeleton code produced by the IDL compiler, producing class files.
Create the server main program and object implementation. Code must be written for each method declared in the IDL interface
definition.
5. Start the server program. It uses the NonStop CORBA ORB implementation contained in the NonStop CORBA jorb.jar file.
6. Start the client application program. It also uses the NonStop CORBA
jorb.jar file. It makes requests of the object hosted in the server
and receives replies.
Tips for Building NonStop CORBA Application Components