[omniORB] using persistent reference with corbaloc

Wernke zur Borg wzb at anitesystems.de
Mon Mar 21 15:45:38 GMT 2005


Try calling

	./server -ORBendPoint=giop:tcp::40001

instead of

	./server -endPoint=giop:tcp:wood:40001


Furthermore, are you using the special omniINSPOA, and are you activating
your object(s) with activate_object_with_id() ?

Wernke 

> -----Original Message-----
> From: omniorb-list-bounces at omniorb-support.com 
> [mailto:omniorb-list-bounces at omniorb-support.com] On Behalf 
> Of Frederico Faria
> Sent: 21 March 2005 14:46
> To: omniorb-list at omniorb-support.com
> Subject: [omniORB] using persistent reference with corbaloc
> 
> 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/
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 
> 




More information about the omniORB-list mailing list