CORBA Programming Reference
void destroy();
Use this method to destroy an ORB so that the resources associated with that ORB can be reclaimed. Once an ORB has been destroyed, another invocation on the ORB_init
method with the same ORB ID returns a reference to a newly constructed ORB. If an application invokes the ORB::destroy
method from a thread that is currently servicing an invocation, the BEA Tuxedo system raises the BAD_INV_ORDER
system exception with the OMG minor code 3, because blocking would result in a deadlock.