Re: WG: Problem by calling add_binding

David Weir <[email protected]> Thu, 22 Dec 2005 12:20:11 -0330
Newsgroups gmane.comp.corba.orbacus
Organization Object Oriented Concepts, Inc. - An IONA Company
Message-ID <[email protected]>
Hello Jean-Louis,

On Thu, Dec 22, 2005 at 08:39:26AM +0100, Decoster Jean Louis wrote:
> Hello Dave,
> 
> I found the solution for my problem with 
> bootManager->add_binding(objId,s_placetable);. In fact the RTTI flag 
> of my compiler was not ON.
> 
> I can create the link object-key; but when I start the client I receive 
> a connection failure. With a ref.file my system works correctly. Can you 
> give me some types how to proceed to solve this failure?
> 
> ObjDb = orb.string_to_object("corbaloc::127.0.0.1/ myObjectId ");

The corbaloc that you have specified will not work as it is since there
is no port information specified. You need to do two things:

1. Start your server on a specific port each time it is launched.
   You can do this by specifying the "-IIOPport <port>" command-line 
   option at start up (or by using the "ooc.orb.oa.endpoint" property
   in a config file; see the manual for details).

2. Specify the port in your corbaloc. For example, if you choose port
   8000, your corbaloc will look like:
   "corbaloc::127.0.0.1:8000/myObjectId" 

This should solve your problem.

> ---------- Start ----------
> 
> org.omg.CORBA.TRANSIENT: attempt to establish connection failed: 
> java.net.ConnectException: Connection refused: connect  vmcid: 0x4f4f0000 
> minor code: 1  completed: No
>       at com.ooc.OCI.IIOP.Connector_impl.connect(Connector_impl.java:130)
>       at com.ooc.OB.GIOPClient.getWorker(GIOPClient.java:224)
>       at com.ooc.OB.GIOPClient.bind(GIOPClient.java:620)
>       at com.ooc.OB.DowncallStub.locate_request(DowncallStub.java:518)
>       at com.ooc.CORBA.Delegate._OB_getDowncallStub(Delegate.java:1248)
>       at com.ooc.CORBA.Delegate.request(Delegate.java:602)
>       at com.ooc.CORBA.Delegate.is_a(Delegate.java:401)
>       at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
>       at eLockidl.placetableCorbaHelper.narrow(placetableCorbaHelper.java:96)
>       at eLockPlace.Start.run(Start.java:76)
>       at eLockPlace.Start.main(Start.java:31)
> 
> Thanks a lot for your response. Have a happy Christmas and a happy new year.
> 
> JOYEUSES FÊTES DE NOÊL ET MES MEILLEURES VOEUX POUR 2006
> 
> Regards
> Jean-Louis

Cheers,
Dave

-- 
David Weir                          
Team Orbacus - Your CORBA Source
E-Mail: [email protected]
WWW: http://www.orbacus.com
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html