Why and when to perform this task
Use this task to compile the IDL file, servant.idl, that defines the public interface for a CORBA server implementation class. You also can use this task to compile the IDL file (also referred to in this task as servant.idl) for an enterprise bean.
Note: If your servant.idl file references other IDL files, ensure that all those other IDL files can be accessed by the idlc program.
Steps for this task
idlc -ehh:ih:ic:uc:sc servant.idl
Results
This task creates the usage binding files needed to implement and use the servant object within a particular programming language. For example, for a server object implementation class called WSLogger, the IDL file, WSLogger.idl, is created and edited to add its interface definition. To compile the IDL file, the following command is used:
idlc -ehh:ih:ic:uc:sc WSLogger.idl
This creates the following files: WSLogger.hh, WSLogger.ih, WSLogger_I.cpp, WSLogger_C.cpp, and WSLogger_S.cpp.
What to do next
Add declarations for class variables, constructors, and destructors to the servant class definition, servant.ih, as described in Adding declarations to the servant class definition.This task also can be used to create the client-side bindings files needed to develop a CORBA client to access an enterprise bean as described in Developing a CORBA client.