org.openorb.rmi
Class DefaultORB

java.lang.Object
  |
  +--org.openorb.rmi.DefaultORB

public final class DefaultORB
extends java.lang.Object

This class is used a an Initializer for RMI over IIOP. It can be used to configure the orb returned to the RMI over IIOP subsystem before any RMI over IIOP code is entered.

Author:
Jerome Daniel

Method Summary
static org.omg.CORBA.ORB getORB()
          Used to locate the default orb for use by the stubs, tie classes, and for resolving the name service in the JNDI context.
static void setInitParams(java.lang.String[] args, java.util.Properties props)
          Set the properties used to initialize the orb.
static void setORB(org.omg.CORBA.ORB orb)
          Set the default orb to use directly.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getORB

public static org.omg.CORBA.ORB getORB()
Used to locate the default orb for use by the stubs, tie classes, and for resolving the name service in the JNDI context.

setORB

public static void setORB(org.omg.CORBA.ORB orb)
Set the default orb to use directly. This can only be called once and before any RMI over IIOP code is entered.
Throws:
java.lang.IllegalStateException - if the orb has already been initialized.

setInitParams

public static void setInitParams(java.lang.String[] args,
                                 java.util.Properties props)
Set the properties used to initialize the orb. Can only be called once, and only before any RMI over IIOP code is entered. Best to call it immediatly upon application startup.
Throws:
java.lang.IllegalStateException - if the orb has already been initialized.