RMI/IIOP Why always running on random port

Discussion in 'Java' started by M D, Dec 12, 2006.

  1. M D

    M D Guest

    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?
     
    M D, Dec 12, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Buu Nguyen

    RMI, JINI or RMI/IIOP

    Buu Nguyen, Aug 25, 2004, in forum: Java
    Replies:
    1
    Views:
    593
    Sudsy
    Aug 25, 2004
  2. JScoobyCed

    RMI Vs RMI over IIOP

    JScoobyCed, Jan 28, 2005, in forum: Java
    Replies:
    1
    Views:
    767
    Dag Sunde
    Jan 28, 2005
  3. Jan Schulze
    Replies:
    1
    Views:
    593
    Esmond Pitt
    Mar 26, 2005
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,129
    Smokey Grindel
    Dec 2, 2006
  5. Replies:
    1
    Views:
    395
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Oct 8, 2007
Loading...

Share This Page