<br><font size=2 face="sans-serif">Kent -</font>
<br>
<br><font size=2 face="sans-serif">We use a distributed architecture for
our software... but the components are themselves pretty static (i.e. once
they're installed, they don't move around much)... so, we use the INSPOA
in our code to provide a specific PORT/IP and name under which the server
objects will respond. &nbsp;Then the corbaloc URI is stored in each client
module's &quot;.ini&quot; or properties file.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br>
<br><font size=2 face="sans-serif">Renny Koshy<br>
President &amp; CEO<br>
<br>
--------------------------------------------<br>
RUBIX Information Technologies, Inc.<br>
www.rubixinfotech.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Kent Gibson &lt;kentgibson@yahoo.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: omniorb-list-bounces@omniorb-support.com</font>
<p><font size=1 face="sans-serif">09/27/2007 08:33 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">omniorb-list@omniorb-support.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[omniORB] programmitcally start-stop
naming server</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>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 &nbsp;<br>
// the naming service. <br>
obj = myecho-&gt;_this(); &nbsp;<br>
CORBA::String_var x;<br>
x = orb-&gt;object_to_string(obj); <br>
cout &lt;&lt; x &lt;&lt; endl; &nbsp;<br>
if( !bindObjectToName(orb, obj) )<br>
{<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
return &quot;unable to bind&quot;;<br>
}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
myecho-&gt;_remove_ref();<br>
PortableServer::POAManager_var pman =<br>
poa-&gt;the_POAManager();<br>
pman-&gt;activate(); &nbsp;<br>
orb-&gt;run(); &nbsp;<br>
<br>
Any help would be grand.<br>
<br>
thanks.<br>
<br>
<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp;____________________________________________________________________________________<br>
Tonight's top picks. What will you watch tonight? Preview the hottest shows
on Yahoo! TV.<br>
http://tv.yahoo.com/ <br>
<br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
omniORB-list@omniorb-support.com<br>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list<br>
</font></tt>
<br>