[omniORB] using persistent reference with corbaloc

Frederico Faria fred_faria at yahoo.com.br
Mon Mar 21 10:46:24 GMT 2005


Hi all,

 I am using the omni example ( available in product
distribution ) for persistent object reference.

But in my client code when I use the IOR dumped from
server everything works fine. 
But  when I try to use the corbaloc syntax the things
dont´work. I would like to use the corbaloc syntax
on client instead the IOR.

 My client piece of code with corbaloc:
   
   CORBA::String_var strIOR =
("corbaloc:iiop:wood:40001/AuthFactory");
   CORBA::Object_ptr obj =
ob->string_to_object(strIOR);

 
   The server code ( copied from omni example
directory ) uses the "AuthFactory" as object id.
I start the server like: 
 ./server -endPoint=giop:tcp:wood:40001

Both server and client are running at same host.  
When I run the client I receive a CORBA exception.
Below are the server and client trace. 
Could Somebody give any help to resolve the problem.

Thank you,
Frederico Faria


-------------------------------------------
 Server Trace
omniORB: Initialising incoming endpoints.
omniORB: Bind to address 0.0.0.0.
omniORB: Starting serving incoming endpoints.
omniORB: AsyncInvoker: thread id = 1 has started.
Total threads = 1
omniORB: giopRendezvouser task execute for
giop:tcp:10.131.10.150:38191
omniORB: Adding root/my poa<AuthFactory> (activating)
to object table.
omniORB: State root/my poa<AuthFactory> (activating)
-> active
omniORB: Creating ref to local: root/my
poa<AuthFactory>
 target id      : IDL:TINC/AuthFactory:1.0
 most derived id: IDL:TINC/AuthFactory:1.0


----------------------------------------------------
Client Trace

omniORB: Creating ref to remote: key<AuthFactory>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id:
omniORB: AsyncInvoker: thread id = 1 has started.
Total threads = 1
omniORB: Scavenger task execute.
omniORB: Client attempt to connect to
giop:tcp:wood:40001
omniORB: throw giopStream::CommFailure from
giopStream.cc:1073(0,NO,TRANSIENT_ConnectFailed)
omniORB: throw TRANSIENT from omniObjRef.cc:759
(NO,TRANSIENT_ConnectFailed)
Caught a CORBA::SystemException.


    


	
	
		
Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/



More information about the omniORB-list mailing list