org.openorb.orb.rmi
Class DefaultORB
java.lang.Object
|
+--org.openorb.orb.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
- Returns:
- The default ORB.
setORB
public static void setORB(org.omg.CORBA.ORB orb)
- Set the default orb. This can only be called once
and before any RMI over IIOP code is entered.
- Parameters:
orb
- An external orb for the default orb instance.- 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.
- Parameters:
args
- An array with command line arguments.props
- ORB properties.- Throws:
java.lang.IllegalStateException
- if the orb has already been initialized.