Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.appmodule.common
Class ORBUtils

java.lang.Object
  |
  +--oracle.dss.appmodule.common.ORBUtils

public class ORBUtils
extends java.lang.Object

Utilities for specifying the ORB for a BI Beans application or applet. By default, BI Beans instantiates a JDK 1.3.1 (J2SE) ORB. If you want to use a different ORB, call the getORBForApplet method or the getORBForApplication method, specifying ORB properties for the ORB that you want to use. Alternately, if you have an ORB, you can pass it to the setORB method.


Constructor Summary
ORBUtils()
           

 

Method Summary
static org.omg.CORBA.ORB getORBForApplet(java.applet.Applet applet, java.util.Properties props, java.lang.String mode)
          Retrieves a reference to the ORB for an applet.
static org.omg.CORBA.ORB getORBForApplication(java.util.Properties props, java.lang.String mode)
          Retrieves a reference to the ORB for an application.
static void setORB(org.omg.CORBA.ORB anOrb)
          Specifies an ORB for the application or applet.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ORBUtils

public ORBUtils()
Method Detail

getORBForApplet

public static org.omg.CORBA.ORB getORBForApplet(java.applet.Applet applet,
                                                java.util.Properties props,
                                                java.lang.String mode)
Retrieves a reference to the ORB for an applet. By default, BI Beans instantiates the JDK 1.3.1 (J2SE) ORB. To initialize an ORB other than the default ORB, set the values of the org.omg.CORBA.ORBClass and the org.omg.CORBA.ORBSingletonClass properties, and any other properties that the ORB needs.
Parameters:
applet - The applet that uses the ORB. Do not pass null.
props - Properties to pass to the ORB.init method. If you use the default ORB, you can pass null for this parameter. To use a different ORB, pass any properties that the ORB needs in this argument. See the documentation for the ORB that you are using, for information about the properties to pass.
mode - Pass oracle.jbo.JboContext.PLATFORM_LOCAL.
Returns:
A reference to the ORB.

getORBForApplication

public static org.omg.CORBA.ORB getORBForApplication(java.util.Properties props,
                                                     java.lang.String mode)
Retrieves a reference to the ORB for an application. By default, this method instantiates a JDK 1.3.1 (J2SE) ORB. To use a different ORB, set the org.omg.CORBA.ORBClass and the org.omg.CORBA.ORBSingletonClass properties, and any other properties that the ORB needs. You can set these in the props parameter.
Parameters:
props - Properties to pass to the ORB.init method. See the documentation for the ORB, for information about the properties that need to be set.
mode - Pass oracle.jbo.JboContext.PLATFORM_LOCAL.
Returns:
A reference to the ORB.

setORB

public static void setORB(org.omg.CORBA.ORB anOrb)
Specifies an ORB for the application or applet.
Parameters:
anOrb - The ORB to use for the application or applet.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.