Using the CORBA Module
The CORBA module generates most of the Java source code you need for CORBA
client and server programs. Because this is a complex process, the procedures
you follow to create CORBA programs are outlined below:
- Before generating any code, complete the installation and setup
procedures.
(See CORBA Module Setup)
- Obtain or write the IDL source file that defines the interfaces for your
CORBA programs.
If you are using the CORBA templates to generate code, generate your IDL
file first.
- Decide which Java source files you need generated: client-side,
server-side, or both.
- Use either the CORBA wizard or the CORBA templates to generate the
files.
- Add the code that completes the generated classes:
- On the client side, add the code that requests a specific IOR from the
naming service. When the server is running, you can use the CORBA module's
Naming Service browser to generate this code and paste it into
your client class file.
- On the server side, add the code that binds the servant instance to the
naming service. You can use the CORBA module's Naming Service browser to
generate this code and paste it into you server class file.
- Also on the server side, add business logic to the generated implementation
class.
- Compile the IDL file.
- Compile, run, and test your programs.
Legal Notices