Developing a CORBA C++ client

Why and when to perform this task

Use this task to develop a CORBA C++ client. This task generates the client-side usage bindings needed by CORBA C++ client programs to access an object class (enterprise bean or CORBA servant object) hosted by an application server.

Steps for this task

  1. Create the interface definition language (IDL) files that specify the public interface to the server implementation object class. If you want the client to access a CORBA server implementation class, create the IDL file as part of the procedure to define the servant implementation as described in Defining the interface for a servant implementation (servant.idl). If you want the client to access an enterprise bean, you can create the IDL file from the bean class, as described in Creating IDL files for an enterprise bean.
  2. Use the idlc command to emit the client-side usage bindings from the IDL, specifying the -suc:hh option.
    If you want the client to access a CORBA server implementation, emit the client-side usage bindings when you compile the servant.idl file, as described in Compiling a CORBA server implementation class IDL (using idlc). If you want the client to access an enterprise bean, you can use the same procedure with the IDL file created from the bean class.

    For example, to emit the client-side bindings from the Hello.idl file and use a command line to change to the directory that contains the IDL file, type the following command:

    idlc -suc:hh Hello.idl

    When the specified idl file is compiled successfully, the idlc command creates the binding files and returns a value of zero. For example, using the previous example idlc command, the following binding files are created: Hello.hh and Hello_C.cpp
  3. Create the main code for the client program, as described in Creating the CORBA client main code (client.cpp).
  4. Compile and link the C++ client main program as described in Building a CORBA C++ client

What to do next

For additional information related to Developing a CORBA C++ client, see the following topics:


Related concepts
Client bootstrapping operation
CORBA client exception handling
Coding tips for CORBA memory management
CORBA client to WebSphere enterprise bean server
Related tasks
Implementing CORBA applications
Defining the interface for a CORBA servant class
Compiling a CORBA server implementation class IDL (using idlc)



Searchable topic ID:   tcor_pgmc0
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/tasks/tcor_pgmc0.html

Library | Support | Terms of Use | Feedback