Java IDL Tools

idltojava Java 2 SDK 1.2 and later
The Java IDL Compiler


idltojava [ options ] IDLfiles 

Description: The idltojava compiler generates Java source files from IDL interface, module, and type descriptions. The compiler ostensibly follows the standard IDL Java mapping defined by the OMG. Note that according to the standard mapping, a single IDL construct may result in several Java constructs being generated. A single IDL interface, for example, generates five Java source files.

Description: The idltojava compiler performs a preprocessing stage during compilation, much like a C or C++ compiler. The preprocessor accepts #define, #undefine, #include, and #pragma directives for preprocessing. Some of the compiler options are related to this preprocessing stage. The #pragma directives that idltojava accepts are:

Description: Note that#pragma directives must appear at the beginning of the IDL file.

Flag name Default Description
caseless off Compile the IDL without considering case when comparing identifiers.
client on Generate client-side Java stubs for the IDL entities encountered.
cpp on Run a C/C++ preprocessor over the IDL files before compilation. An error is reported and compilation stops if the preprocessor is not found. Affected by the CPP and CPPARGS environment variables described in the next section, or uses the defaults if none given.
list-flags off Print the value of all the flags used for compilation.
list-options off Print a list of the command-line options used for compilation.
map-included-files off Generate Java code for any IDL files included by #include directives.
portable on Generate portable stub and skeleton Java classes (e.g., code that uses the CORBA portability layer provided in the org.omg.CORBA.portable package).
server on Generate server-side Java skeletons for the IDL entities encountered.
tie off Generate xxxTie and xxxOperations classes for each server skeleton, thus making them eligible for use in delegation-based operation.
verbose off Print extensive messages on the compilation procedure.
version off Print the version number and timestamp for the idltojava compiler in use.
write-files on Write the generated Java source files to the destination directory. If this flag is off, the compiler is acting as simply an IDL syntax checker.

Bugs: As of this writing, Sun still has not released a final version of idltojava to correspond to the final Java IDL API included in the Java SDK 1.2. The current available version is the early-access version, which has the following notable bugs:

tnameserv Java 2 SDK 1.2 and later
The Java IDL Naming Service Daemon


tnameserv [ options ]

Description: The tnameserv daemon is the CORBA Naming Service daemon provided with Java IDL. The Naming Service allows remote CORBA objects to be bound to names with the naming directory of the service. Remote clients can connect to the Naming Service through standard CORBA APIs and ask for references to these objects by name or browse through the objects bound to names in the directory.

Description: The daemon should be run in the background. The tnameserv implementation of the Naming Service is a nonpersistent one (i.e., bindings created and stored in the naming context are only valid during the lifetime of the tnameserv daemon).