Showing posts from January, 2009

Jacorb Publish a Corba Servant on well know port without Naming Service

Thanks to the posts from - [jacorb-developer] 'Publish a Servant on well know port'

I was able to do the same. Below are the server and client snippet. This is using Jacorb ORB.
Server code
String[] args3=  { "-DOAPort=4013" };
        java.util.Properties argProps = ObjectUtil.argsToProps( args3 );         Properties props = System.getProperties();
        props.put("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");//JACORB         props.put("org.omg.CORBA.ORBSingletonClass", "org.jacorb.orb.ORBSingleton");         props.put("org.omg.PortableInterceptor.ORBInitializerClass.bidir_init",           "org.jacorb.orb.giop.BiDirConnectionInitializer");         props.put("jacorb.implname","StandardImplName");         props.putAll( argProps );         System.setProperties(props);
orb = org.omg.CORBA.ORB.init(args, props);

root_poa = org.omg.PortableServer.POAHelper.narrow( orb.resolve_initial_references("…