Attempting to connect to a CORBA Service using corbaloc url

Posted by Megasaur on Stack Overflow See other posts from Stack Overflow or by Megasaur
Published on 2010-05-10T07:16:17Z Indexed on 2010/05/10 7:24 UTC
Read the original article Hit count: 310

Filed under:
    String[] orbargs= {};
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(orbargs, null);
    org.omg.CORBA.Object cobj = orb.string_to_object("corbaloc:iiop:10.1.1.200:6969/OurServiceHelper");
    _OurServiceHelper cpsh = _OurServiceHelperHelper.narrow(cobj); // Get's stuck
    cpsh.ourMethod();

That narrow just hangs.

My service is setup to run on a static port. And we know it works since we usually look it up through the NamingService.

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about corba