Creating a CORBA Server

When you create a CORBA server, you create an implementation for a CORBA object and create a main method that creates one or more instances of the CORBA object. After you create a CORBA object, you register it with the CORBA naming service to allow clients to access it.

Before you create the object implementation, of course, you need an IDL file. Because the IDL file in Listing 17.1, shown earlier, is a very simple IDL, it makes a good starting point for CORBA development. After you create the IDL file, you must compile it. Each ORB implementation has a different IDL compiler with different options. JDK 1.3 comes with an IDL compiler called idlj that is easy to use. For some strange reason, idlj doesn't generate server ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.