Hi,<br><br>I am new to CORBA and I am using OmniOrbPy to develop my skills. <br><br>I have a Server Client Implementation which works well when run on the same machine.<br> If I attempt to run the client on another machine I get errors. <br>

<br>Surprisingly, the code works well across machines if I comment out the lines <br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oClient = oORB.string_to_object(&quot;corbaname:rir:#oClient.obj&quot;)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print oClient.GetState()<br><br>in the myserver.py implementation. <br><br>However, I need to read back the Client state for the application I am trying to develop. <br>The errors and full source code follows.<br>

<br>---8&lt;---Error reported by client on different machine-----------------------<div id="1fd4" class="ArwC7c ckChnd">-----------------------------------------------------------------------<br><br>Traceback (most recent call last):<br>
&nbsp; File &quot;myClient.py&quot;, line 36, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; print oServer.GetState()<br>&nbsp; File &quot;H:\a\ar\ar210\WindowsProfile\My Documents\SpringTerm\DS\Code\CallTest_idl.py&quot;, line 96, in GetState<br>&nbsp;&nbsp;&nbsp; return _omnipy.invoke(self, &quot;GetState&quot;, _0_CallTest.imyServer._d_GetState, args)<br>

omniORB.CORBA.COMM_FAILURE: CORBA.COMM_FAILURE(omniORB.COMM_FAILURE_MarshalArguments, CORBA.COMPLETED_NO)<br><br>---8&lt;---Error reported by server ----------------------------------------------------------------------------------------------<br>

<br>omniORB: Read from configuration file &quot;server.cfg&quot;.<br>omniORB: Version: 4.1.1<br>omniORB: Distribution date: Sun Oct&nbsp; 7 16:41:47 BST 2007 dgrisby<br>omniORB: Warning: unable to create an IPv6 socket. Unable to obtain the list of IPv6 interface addresses (10047).<br>

omniORB: My addresses are:<br>omniORB: <a href="http://139.184.50.152/" target="_blank">139.184.50.152</a><br>omniORB: <a href="http://127.0.0.1/" target="_blank">127.0.0.1</a><br>omniORB: Maximum supported GIOP version is 1.2<br>
omniORB: Native char code sets: UTF-8 ISO-8859-1.<br>
omniORB: Transmission char code sets: UTF-8(1.2) UTF-8(1.1) ISO-8859-1(1.2) ISO-8859-1(1.1) ISO-8859-1(1.0).<br>omniORB: Native wide char code sets: UTF-16.<br>omniORB: Transmission wide char code sets: UTF-16(1.2).<br>omniORB: Information: the omniDynamic library is not linked.<br>

omniORB: Current configuration is as follows:<br>omniORB:&nbsp;&nbsp; DefaultInitRef (file) =<br>omniORB:&nbsp;&nbsp; DefaultInitRef (args) =<br>omniORB:&nbsp;&nbsp; InitRef = NameService=corbaname::<a href="http://aldgate.tn.informatics.scitech.sussex.ac.uk:8000/" target="_blank">aldgate.tn.informatics.scitech.sussex.ac.uk:8000</a><br>

omniORB:&nbsp;&nbsp; abortOnInternalError = 0<br>omniORB:&nbsp;&nbsp; abortOnNativeException = 0<br>omniORB:&nbsp;&nbsp; acceptBiDirectionalGIOP = 1<br>omniORB:&nbsp;&nbsp; acceptMisalignedTcIndirections = 0<br>omniORB:&nbsp;&nbsp; bootstrapAgentHostname =<br>omniORB:&nbsp;&nbsp; bootstrapAgentPort = 900<br>

omniORB:&nbsp;&nbsp; clientCallTimeOutPeriod = 0<br>omniORB:&nbsp;&nbsp; clientConnectTimeOutPeriod = 0<br>omniORB:&nbsp;&nbsp; clientTransportRule = * unix,ssl,tcp<br>omniORB:&nbsp;&nbsp; configFile = server.cfg<br>omniORB:&nbsp;&nbsp; connectionWatchImmediate = 0<br>omniORB:&nbsp;&nbsp; connectionWatchPeriod = 50000<br>

omniORB:&nbsp;&nbsp; copyValuesInLocalCalls = 1<br>omniORB:&nbsp;&nbsp; diiThrowsSysExceptions = 0<br>omniORB:&nbsp;&nbsp; dumpConfiguration = 0<br>omniORB:&nbsp;&nbsp; endPoint = giop:tcp::8002<br>omniORB:&nbsp;&nbsp; endPointPublish = addr<br>omniORB:&nbsp;&nbsp; giopMaxMsgSize = 2097152<br>

omniORB:&nbsp;&nbsp; giopTargetAddressMode = KeyAddr<br>omniORB:&nbsp;&nbsp; id = omniORB4<br>omniORB:&nbsp;&nbsp; idleThreadTimeout = 10<br>omniORB:&nbsp;&nbsp; inConScanPeriod = 180<br>omniORB:&nbsp;&nbsp; lcdMode = 0<br>omniORB:&nbsp;&nbsp; maxGIOPConnectionPerServer = 5<br>omniORB:&nbsp;&nbsp; maxGIOPVersion = 1.2<br>

omniORB:&nbsp;&nbsp; maxInterleavedCallsPerConnection = 5<br>omniORB:&nbsp;&nbsp; maxServerThreadPerConnection = 100<br>omniORB:&nbsp;&nbsp; maxServerThreadPoolSize = 100<br>omniORB:&nbsp;&nbsp; maxSocketRecv = 131072<br>omniORB:&nbsp;&nbsp; maxSocketSend = 131072<br>omniORB:&nbsp;&nbsp; nativeCharCodeSet = ISO-8859-1<br>

omniORB:&nbsp;&nbsp; nativeWCharCodeSet = UTF-16<br>omniORB:&nbsp;&nbsp; objectTableSize = 0<br>omniORB:&nbsp;&nbsp; offerBiDirectionalGIOP = 1<br>omniORB:&nbsp;&nbsp; oneCallPerConnection = 0<br>omniORB:&nbsp;&nbsp; outConScanPeriod = 120<br>omniORB:&nbsp;&nbsp; poaHoldRequestTimeout = 0<br>

omniORB:&nbsp;&nbsp; poaUniquePersistentSystemIds = 1<br>omniORB:&nbsp;&nbsp; principal = [Null]<br>omniORB:&nbsp;&nbsp; resetTimeOutOnRetries = 0<br>omniORB:&nbsp;&nbsp; scanGranularity = 5<br>omniORB:&nbsp;&nbsp; serverCallTimeOutPeriod = 0<br>omniORB:&nbsp;&nbsp; serverTransportRule = * bidir,unix,tcp,ssl<br>

omniORB:&nbsp;&nbsp; socketSendBuffer = 16384<br>omniORB:&nbsp;&nbsp; strictIIOP = 1<br>omniORB:&nbsp;&nbsp; supportBootstrapAgent = 0<br>omniORB:&nbsp;&nbsp; supportCurrent = 1<br>omniORB:&nbsp;&nbsp; supportPerThreadTimeOut = 0<br>omniORB:&nbsp;&nbsp; tcAliasExpand = 0<br>omniORB:&nbsp;&nbsp; threadPerConnectionLowerLimit = 9000<br>

omniORB:&nbsp;&nbsp; threadPerConnectionPolicy = 1<br>omniORB:&nbsp;&nbsp; threadPerConnectionUpperLimit = 10000<br>omniORB:&nbsp;&nbsp; threadPoolWatchConnection = 1<br>omniORB:&nbsp;&nbsp; traceExceptions = 1<br>omniORB:&nbsp;&nbsp; traceFile = [stderr]<br>omniORB:&nbsp;&nbsp; traceInvocationReturns = 0<br>

omniORB:&nbsp;&nbsp; traceInvocations = 0<br>omniORB:&nbsp;&nbsp; traceLevel = 25<br>omniORB:&nbsp;&nbsp; traceThreadId = 0<br>omniORB:&nbsp;&nbsp; traceTime = 0<br>omniORB:&nbsp;&nbsp; unixTransportDirectory = /tmp/omni-%u<br>omniORB:&nbsp;&nbsp; unixTransportPermission =&nbsp; 777<br>

omniORB:&nbsp;&nbsp; useTypeCodeIndirections = 1<br>omniORB:&nbsp;&nbsp; verifyObjectExistsAndType = 1<br>omniORB: omniORBpy distribution date: Sun Oct&nbsp; 7 16:38:58 BST 2007 dgrisby<br>omniORB: Python thread state scavenger start.<br>omniORB: Initialising incoming endpoints.<br>

omniORB: Instantiate endpoint &#39;giop:tcp::8002&#39;<br>omniORB: Attempt to set socket to listen on IPv4 and IPv6.<br>omniORB: Unable to set socket to listen on IPv4 and IPv6. Fall back to just IPv4.<br>omniORB: Bind to address <a href="http://0.0.0.0/" target="_blank">0.0.0.0</a><br>

omniORB: Publish specification: &#39;addr&#39;<br>omniORB: Try to publish &#39;addr&#39; for endpoint giop:tcp:<a href="http://139.184.50.152:8002/" target="_blank">139.184.50.152:8002</a><br>omniORB: Publish endpoint &#39;giop:tcp:<a href="http://139.184.50.152:8002/" target="_blank">139.184.50.152:8002</a>&#39;<br>

omniORB: Starting serving incoming endpoints.<br>omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 1<br>omniORB: giopRendezvouser task execute for giop:tcp:<a href="http://139.184.50.152:8002/" target="_blank">139.184.50.152:8002</a><br>

omniORB: Adding root&lt;0&gt; (activating) to object table.<br>omniORB: State root&lt;0&gt; (activating) -&gt; active<br>omniORB: Creating ref to local: root&lt;0&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CORBA/Object:1.0" target="_blank">omg.org/CORBA/Object:1.0</a><br>

&nbsp;most derived id: IDL:CallTest/imyServer:1.0<br>omniORB: Creating Python ref to local: root&lt;0&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:CallTest/imyServer:1.0<br>&nbsp;most derived id: IDL:CallTest/imyServer:1.0<br>omniORB: ObjRef(IDL:CallTest/imyServer:1.0) -- deleted.<br>

omniORB: Creating ref to remote: key&lt;NameService&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CORBA/Object:1.0" target="_blank">omg.org/CORBA/Object:1.0</a><br>&nbsp;most derived id:<br>omniORB: Initial reference `NameService&#39; resolved from configuration file.<br>

omniORB: Creating Python ref to remote: key&lt;NameService&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CORBA/Object:1.0" target="_blank">omg.org/CORBA/Object:1.0</a><br>&nbsp;most derived id:<br>omniORB: Client attempt to connect to giop:tcp:<a href="http://aldgate.tn.informatics.scitech.sussex.ac.uk:8000/" target="_blank">aldgate.tn.informatics.scitech.sussex.ac.uk:8000</a><br>

omniORB: AsyncInvoker: thread id = 3 has started. Total threads = 2<br>omniORB: Scavenger task execute.<br>omniORB: Client opened connection to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a><br>
omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 100 bytes<br>
omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 25 bytes<br>omniORB: Creating Python ref to remote: key&lt;NameService&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CosNaming/NamingContext:1.0" target="_blank">omg.org/CosNaming/NamingContext:1.0</a><br>

&nbsp;most derived id:<br>omniORB: ObjRef() -- deleted.<br>omniORB: LocateRequest to remote: key&lt;NameService&gt;<br>omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 31 bytes<br>
omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 20 bytes<br>
omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 228 bytes<br>omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 24 bytes<br>
omniORB: Server accepted connection from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a><br>
omniORB: AsyncInvoker: thread id = 5 has started. Total threads = 3<br>omniORB: giopWorker task execute.<br>omniORB: Accepted connection from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> because of this rule: &quot;* bidir,unix,tcp,ssl&quot;<br>

omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> 38 bytes<br>omniORB: Handling a GIOP LOCATE_REQUEST.<br>omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> 20 bytes<br>

omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> 122 bytes<br>omniORB: Receive codeset service context and set TCS to (ISO-8859-1,UTF-16)<br>omniORB:&nbsp; receive bidir IIOP service context: ( <a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a> )<br>

omniORB: Accepted request from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> to switch to bidirectional because of this rule: &quot;* bidir,unix,tcp,<br>sl&quot;<br>omniORB: Creating new Python state for thread id 19820<br>

omniORB: Initial reference `NameService&#39; resolved from configuration file.<br>omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 100 bytes<br>omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 25 bytes<br>

omniORB: Creating ref to remote: key&lt;NameService&gt;<br>&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CosNaming/NamingContext:1.0" target="_blank">omg.org/CosNaming/NamingContext:1.0</a><br>&nbsp;most derived id:<br>omniORB: string_to_object attempting to resolve `oClient.obj&#39; from naming service<br>

omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 80 bytes<br>omniORB: inputMessage: from giop:tcp:<a href="http://139.184.50.152:8000/" target="_blank">139.184.50.152:8000</a> 172 bytes<br>
omniORB: Creating ref to remote: root&lt;0&gt;<br>
&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CORBA/Object:1.0" target="_blank">omg.org/CORBA/Object:1.0</a><br>&nbsp;most derived id: IDL:CallTest/imyClient:1.0<br>omniORB: ObjRef() -- deleted.<br>omniORB: Creating Python ref to remote: root&lt;0&gt;<br>

&nbsp;target id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : IDL:<a href="http://omg.org/CORBA/Object:1.0" target="_blank">omg.org/CORBA/Object:1.0</a><br>&nbsp;most derived id: IDL:CallTest/imyClient:1.0<br>omniORB: omniRemoteIdentity deleted.<br>omniORB: ObjRef(IDL:CallTest/imyClient:1.0) -- deleted.<br>

omniORB: LocateRequest to remote: root&lt;0&gt;<br>omniORB: Client attempt to connect to giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a><br>omniORB: Client opened connection to giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a><br>

omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a> 38 bytes<br>omniORB: Switch rope to use address giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a><br>
omniORB: Error in network send: giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a><br>
omniORB: throw giopStream::CommFailure from giopStream.cc:1182(0,NO,COMM_FAILURE_MarshalArguments)<br>omniORB: Client connection refcount = 0<br>omniORB: Client close connection to giop:tcp:<a href="http://139.184.50.153:2096/" target="_blank">139.184.50.153:2096</a><br>

omniORB: Caught a CORBA system exception during up-call: IDL:<a href="http://omg.org/CORBA/COMM_FAILURE:1.0" target="_blank">omg.org/CORBA/COMM_FAILURE:1.0</a><br>Traceback (most recent call last):<br>&nbsp; File &quot;myServer.py&quot;, line 19, in GetState<br>

&nbsp;&nbsp;&nbsp; print oClient.GetState()<br>&nbsp; File &quot;H:\a\ar\ar210\WindowsProfile\My Documents\SpringTerm\DS\Code\CallTest_idl.py&quot;, line 46, in GetState<br>&nbsp;&nbsp;&nbsp; return _omnipy.invoke(self, &quot;GetState&quot;, _0_CallTest.imyClient._d_GetState, args)<br>

omniORB.CORBA.COMM_FAILURE: CORBA.COMM_FAILURE(omniORB.COMM_FAILURE_MarshalArguments, CORBA.COMPLETED_NO)<br>omniORB: throw COMM_FAILURE from pyExceptions.cc:177 (NO,COMM_FAILURE_MarshalArguments)<br>omniORB: sendChunk: to giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a> 72 bytes<br>

omniORB: Error in network receive (start of message): giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a><br>omniORB: throw giopStream::CommFailure from giopStream.cc:874(0,NO,COMM_FAILURE_UnMarshalArguments)<br>

omniORB: Server connection refcount = 1<br>omniORB: select() returned WSAENOTSOCK / WSAEINVAL.<br>omniORB: Server connection refcount = 0<br>omniORB: Server close connection from giop:tcp:<a href="http://139.184.50.153:2098/" target="_blank">139.184.50.153:2098</a><br>

omniORB: Deleting Python state for thread id 19820 (thread exit)<br>omniORB: AsyncInvoker: thread id = 5 has exited. Total threads = 3<br>omniORB: Scanning Python thread states.<br>omniORB: Scavenger close connection to giop:tcp:<a href="http://139.184.50.152:3555/" target="_blank">139.184.50.152:3555</a><br>

omniORB: sendCloseConnection: to giop:tcp:<a href="http://139.184.50.152:3555/" target="_blank">139.184.50.152:3555</a> 12 bytes<br>omniORB: Client connection refcount (forced) = 0<br>omniORB: Client close connection to giop:tcp:<a href="http://139.184.50.152:3555/" target="_blank">139.184.50.152:3555</a><br>

omniORB: omniRemoteIdentity deleted.<br>omniORB: ObjRef(IDL:CallTest/imyClient:1.0) -- deleted.<br>Traceback (most recent call last):<br>&nbsp; File &quot;myServer.py&quot;, line 41, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; oORB.run()<br>&nbsp; File &quot;H:\a\ar\ar210\WindowsProfile\My Documents\SpringTerm\DS\Code\CORBA.py&quot;, line 587, in run<br>

<br>KeyboardInterrupt<br>omniORB: omniRemoteIdentity deleted.<br>omniORB: ObjRef() -- deleted.<br>omniORB: ObjRef(IDL:CallTest/imyServer:1.0) -- deleted.<br>omniORB: omniRemoteIdentity deleted.<br>omniORB: ObjRef() -- deleted.<br>

omniORB: ORB not destroyed; no final clean-up.<br><br><br>####################################################################################################<br><br>SOURCE CODE<br><br>--8&lt;----------CallTest.idl------------------------------------------------------------------------------------------------------------------<br>

<br>module CallTest<br>{<br>&nbsp;&nbsp;&nbsp; interface imyClient<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; short GetState();<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; interface imyServer<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; short GetState();<br>&nbsp;&nbsp;&nbsp; };&nbsp;&nbsp;&nbsp; <br>};<br><br><br>--8&lt;-------myServer.py---------------------------------------------------------------------------------------------------------------------<br>

<br><br>import sys<br>import CORBA<br><br>import CosNaming<br><br>import CallTest<br>import CallTest__POA<br><br>oORB = None<br><br>class myServer (CallTest__POA.imyServer):<br>&nbsp;&nbsp;&nbsp; def __init__(self):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.State = 0<br>

&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; def GetState(self):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; global oORB<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oClient = oORB.string_to_object(&quot;corbaname:rir:#oClient.obj&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print oClient.GetState()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.State = self.State + 5<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return self.State<br><br>oORB = CORBA.ORB_init(sys.argv,CORBA.ORB_ID)<br>oPOA = oORB.resolve_initial_references(&quot;RootPOA&quot;)<br>oPOA._get_the_POAManager().activate()<br><br>servantmyServer = myServer()<br>

oPOA.activate_object(servantmyServer)<br>objrefmyServer = servantmyServer._this()<br><br>oNameRoot = oORB.resolve_initial_references(&quot;NameService&quot;)<br>oNameRoot = oNameRoot._narrow(CosNaming.NamingContext)<br>if None == oNameRoot:<br>

&nbsp;&nbsp;&nbsp; print &quot;Did not locate a valid naming service. Please check setup.&quot;<br>&nbsp;&nbsp;&nbsp; sys.exit(1)<br>&nbsp;&nbsp;&nbsp; <br>oName = [CosNaming.NameComponent(&quot;oServer&quot;,&quot;obj&quot;)]<br>oNameRoot.rebind(oName,objrefmyServer)<br>

<br>oORB.run()<br><br><br>--8&lt;---------myClient.py--------------------------------------------------------------------------------------------------------------------------<br><br><br>import sys<br>import CORBA<br><br>

import CosNaming<br><br>import CallTest<br>import CallTest__POA<br><br>class myClient (CallTest__POA.imyClient):<br>&nbsp;&nbsp;&nbsp; def __init__(self):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.State = 0<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; def GetState(self):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.State = self.State + 7<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return self.State&nbsp;&nbsp;&nbsp; <br><br>oORB = CORBA.ORB_init(sys.argv,CORBA.ORB_ID)<br>oPOA = oORB.resolve_initial_references(&quot;RootPOA&quot;)<br>oPOA._get_the_POAManager().activate()<br><br>servantmyClient = myClient()<br>

idClient = oPOA.activate_object(servantmyClient)<br>objrefmyClient = servantmyClient._this()<br><br>oNameRoot = oORB.resolve_initial_references(&quot;NameService&quot;)<br>oNameRoot = oNameRoot._narrow(CosNaming.NamingContext)<br>

if None == oNameRoot:<br>&nbsp;&nbsp;&nbsp; print &quot;Did not locate a valid naming service. Please check setup.&quot;<br>&nbsp;&nbsp;&nbsp; sys.exit(1)<br>&nbsp;&nbsp;&nbsp; <br>oName = [CosNaming.NameComponent(&quot;oClient&quot;,&quot;obj&quot;)]<br>oNameRoot.rebind(oName,objrefmyClient)<br>

<br>oServer = oORB.string_to_object(&quot;corbaname:rir:#oServer.obj&quot;)<br><br>print oServer.GetState()<br><br>print &quot;Client has finished&quot;<br><br>---8&lt;-------------------------------------------------------------------------------------------------------------------------<br>

<br><br>Kindly let me know the flaw in my approach. Please bear with any ignorance on my part as these concepts are new to me.<br>Any help would be appreciated.<br><br>Regards,<br><font color="#888888">Anup<br></font></div>