Shutting down the client and releasing resources used

Why and when to perform this task

Use this task to create code for a CORBA client, shut down the client, and release the resources that it used.

To shut down a CORBA client, add the following code to the main() function in the client.cpp client source file:

int main ( int argc, char *argv[] )
{
   CORBA::ORB_ptr orbPtr = CORBA::ORB_init ( argc, argv, "DSOM" );

   .
   .
   .

   // Release the ORB object.
   CORBA::release ( orbPtr );

   return 0;
}

Results

This task adds code that shuts down a CORBA client and releases the resources that it used.

Related tasks
Creating the CORBA client main code (client.cpp)



Searchable topic ID:   tcor_pgmc1g
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_pgmc1g.html

Library | Support | Terms of Use | Feedback