Explicity specify the port number for IIOP listener
843830Dec 11 2006 — edited Jan 19 2007When execute the following program( calling ejb from remote pc )
always
"Successfully created IIOP listener on the specified host/port: all interfaces/1642" is displayed. IIOS Listener is registered in a random port. I want to know if i can specify the port for the IIOP listener.
props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.1.196");
props.setProperty("org.omg.CORBA.ORBInitialPort", "4444");
props.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
InitialContext initial = new InitialContext(props);
System.out.println("initial="+ initial);
Object o = initial.lookup("corbaname:iiop:192.168.1.196:4444#ejb/SFHelloBean");
Dec 11, 2006 10:24:54 AM com.sun.corba.ee.spi.logging.LogWrapperBase doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1642"