[omniORB] corbaloc/corbaname

Nick Murtagh murtaghn@tcd.ie
Fri, 22 Feb 2002 11:56:24 +0000


On Friday 22 February 2002 11:42, Duncan Grisby wrote:
>   orb = CORBA.ORB_init(sys.argv)
>   ins_poa = orb.resolve_initial_references("omniINSPOA")
>
>   servant = MyImplementation()
>   ins_poa.activate_object_with_id("example", servant)
>
>   ins_poa._get_the_POAManager().activate()
>   orb.run()

Ah. Excellent.

> The object is now available as corbaloc::host.name:port/example. You
> should pin down the port number with -ORBpoa_iiop_port in omniORB 3 or
> -ORBendPoint in omniORB 4.

Is there any way to specify this from within a program? Without having to
mangle argc and argv? If not I suppose I can just write some kind of a 
wrapper.