Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Explicity specify the port number for IIOP listener

843830Dec 11 2006 — edited Jan 19 2007
When 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"
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2007
Added on Dec 11 2006
15 comments
693 views