<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> &lt;<a href="mailto:kentgibson@yahoo.com">kentgibson@yahoo.com</a>&gt; 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, &amp;test);<br>CORBA::Object_var obj =<br>orb-&gt;resolve_initial_references(&quot;RootPOA&quot;);<br>PortableServer::POA_var poa =<br>PortableServer::POA::_narrow(obj);<br>Echo_i* myecho = new Echo_i();
<br>PortableServer::ObjectId_var myechoid =<br>poa-&gt;activate_object(myecho);<br>// Obtain a reference to the object, and register it<br>in<br>// the naming service.<br>obj = myecho-&gt;_this();<br>CORBA::String_var x;<br>
x = orb-&gt;object_to_string(obj);<br>cout &lt;&lt; x &lt;&lt; endl;<br>if( !bindObjectToName(orb, obj) )<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return &quot;unable to bind&quot;;<br>}<br><br>myecho-&gt;_remove_ref();<br>PortableServer::POAManager_var pman =
<br>poa-&gt;the_POAManager();<br>pman-&gt;activate();<br>orb-&gt;run();<br><br>Any help would be grand.<br><br>thanks.<br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;____________________________________________________________________________________
<br>Tonight&#39;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