RMI/IIOP Why always running on random port

M

M D

I am ttrying to specify the registering port for IIOP listener, but
it always gives me the following message with a random port number.

INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the
specified host/port: all interfaces/1642"

ORBInitialPort i specify is not that port IIIOP listener is created?
The following is that source code I am using to get the EJB.

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");

What is wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top