<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. Then the corbaloc URI is stored in each client
module's ".ini" 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 & 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 <kentgibson@yahoo.com></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, &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>
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>