Update of /cvsroot/recall/corba
In directory usw-pr-cvs1:/tmp/cvs-serv4778
Modified Files:
HOWTO.html
Log Message:
update for host:port designation
Index: HOWTO.html
===================================================================
RCS file: /cvsroot/recall/corba/HOWTO.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** HOWTO.html 11 Feb 2002 15:46:30 -0000 1.14
--- HOWTO.html 7 May 2002 23:40:49 -0000 1.15
***************
*** 269,277 ****
<pre>
! python server.py Av/Storage server1 server2 server3
! python server.py Av/Storage server2 server1 server3
! python server.py Av/Storage server3 server1 server2
</pre>
--- 269,277 ----
<pre>
! python server.py Av/Storage localhost:2001 localhost:2002 localhost:2003
! python server.py Av/Storage localhost:2002 localhost:2001 localhost:2003
! python server.py Av/Storage localhost:2003 localhost:2002 localhost:2001
</pre>
***************
*** 288,291 ****
--- 288,292 ----
from Av import idl
+ from Recall.CorbaUtil import any
def main():
***************
*** 293,307 ****
args = [ "-ORBclientCallTimeOutPeriod", "3",
"-ORBscanGranularity", "3"]
! c = CorbaUtil.Corba(args)
# create local client implementation
! impl = ClientImpl.ClientImpl(c, ['server1', 'server2', 'server3'])
c.activatePOA()
client = impl._this()
writeRequest = \
! CorbaUtil.any(idl.WriteRequest("my_favorite_color", "blue"))
client.write(writeRequest)
! assert client.read("my_favorite_color").value() == "blue"
print "Test Successful"
--- 294,310 ----
args = [ "-ORBclientCallTimeOutPeriod", "3",
"-ORBscanGranularity", "3"]
! c = CorbaUtil.Contexts(args)
# create local client implementation
! impl = ClientImpl.ClientImpl(c, ['localhost:2001',
! 'localhost:2002',
! 'localhost:2003'])
c.activatePOA()
client = impl._this()
writeRequest = \
! any(idl.WriteRequest("my_favorite_color", "blue"))
client.write(writeRequest)
! assert (client.read(any("my_favorite_color")).value() == "blue")
print "Test Successful"
|