<span style="color: rgb(51, 51, 255);"><span style="font-family: verdana;">Kent,<br>I
believe you can do that by running the omninames service
programmatically by running it in a process that you create and destroy
when your work is done.
<br><br><br>Best Regards,<br><br><br>Tahar.<br></span></span><br><div><span class="gmail_quote">On 9/27/07, <b class="gmail_sendername">Kent Gibson</b> <<a href="mailto:kentgibson@yahoo.com">kentgibson@yahoo.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there any way that I can start and stop the naming<br>service (omniNames) programmatically?
<br><br>Or can I somehow do without the naming service? and if<br>so how?<br><br>What I want to do is start everything up in one<br>windows dll. And then hopefully also shut everything<br>down in one dll.<br><br>This is what I am doing now:
<br><br>orb = CORBA::ORB_init(x, &test);<br>CORBA::Object_var obj =<br>orb->resolve_initial_references("RootPOA");<br>PortableServer::POA_var poa =<br>PortableServer::POA::_narrow(obj);<br>Echo_i* myecho = new Echo_i();
<br>PortableServer::ObjectId_var myechoid =<br>poa->activate_object(myecho);<br>// Obtain a reference to the object, and register it<br>in<br>// the naming service.<br>obj = myecho->_this();<br>CORBA::String_var x;<br>
x = orb->object_to_string(obj);<br>cout << x << endl;<br>if( !bindObjectToName(orb, obj) )<br>{<br> return "unable to bind";<br>}<br><br>myecho->_remove_ref();<br>PortableServer::POAManager_var pman =
<br>poa->the_POAManager();<br>pman->activate();<br>orb->run();<br><br>Any help would be grand.<br><br>thanks.<br><br><br><br><br> ____________________________________________________________________________________
<br>Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.<br><a href="http://tv.yahoo.com/">http://tv.yahoo.com/</a><br><br><br>_______________________________________________<br>omniORB-list mailing list
<br><a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br><a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Tahar