Hi,
this is my first post to mico-devel, so apologies for any mistakes I might
happen to make.
I wonder if anyone could help me out with this problem:
I am currently migrating an older BOA based app to MICO 2.3.12RC1.
Now in my old version, inside the servant I could do somthing like this:
<code>
CORBA::BOA_var boa = _boa();
CORBA::ORB_var orb = _orb();
boa->deactivate_impl( 0 );
orb->shutdown( TRUE );
</code>
to cause the server to shut down and exit.
How do I do this with current versions of MICO? I got as far as migrating from
BOA to POA along the lines of the "account" example programs. Also, the
mailing list archives revealed an ORB_instance() function that seems to have
replaced _orb().
My current version looks like this:
<code>
CORBA::ORB_var orb = CORBA::ORB_instance("mico-local-orb",FALSE);
orb->shutdown( TRUE );
</code>
This compiles (and runs) fine, HOWEVER, it results in an
"IDL:omg.org/CORBA/BAD_INV_ORDER:1.0 (3, not-completed)"
exception being thrown when called from a client (and the server does not
terminate).
So what is the correct way of terminating the server in response to a client
"terminate" request?
Thanks a lot for your help
Martin
ps.
On a side line: Where would I find a complete MICO API description?
--
Martin Grill
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel