The EAServer ORB implementation class requires stub header files in order to invoke component methods. You must include stub header files in your client source files. The stub header files contain as inline all the component functions, which make calls to the C functions in libjcc.dll. Inline functions allow EAServer to support multiple C++ compilers without having to include separate link libraries for each compiler.
For CORBA/C++ components, EAServer generates C++ stub header files for deployed C++ CORBA components when you run the jaguar-compiler command—see “Generating C++ component files”. To generate C++ stubs for components of other types, use the idl-compiler command-line tool. For example:
%DJC_HOME%\bin\idl-compiler.bat -v Tutorial\CPPArithmetic.idl -f %DJC_HOME%\include -cpp
For information on idl-compiler syntax, see Chapter 12, “Command Line Tools,” in the System Administration Guide.
If you are using another C++ ORB implementation to connect to EAServer, you must export IDL and use the vendor’s IDL compiler to generate stubs that are compatible with that ORB implementation. “Using CORBA ORB implementations other than EAServer” describes how to export IDL files for EAServer components.