IBM User Guide for Java V7 on Windows > IBM SDK for Java > The ORB > How the ORB works > The client side



ORB initialization

In a stand-alone Java™ application, the client must create an instance of the ORB.

The ORB instance is created by calling the static method init(...). For example:

ORB orb = ORB.init(args,props);

The parameters that are passed to the method are:

A similar method is used for an applet. The difference is that a Java Applet is passed instead of the string array.

The first step of ORB initialization is to process the ORB properties. The properties are found by searching in the following sequence:

  1. First, check in the applet parameter, or application string array.
  2. Check in the properties parameter, if the parameter exists.
  3. Check in the system properties.
  4. Check in any orb.properties file that is found in the <user-home> directory.
  5. Check in any orb.properties file that is found in the <java-home>/lib directory.
  6. Finally, use hardcoded default behavior.

Two important properties are ORBClass and ORBSingletonClass. These properties determine which ORB class is created and initialized, or "instantiated".

After the ORB is instantiated, it starts and initializes the TCP transport layer. If the ListenerPort property was set, the ORB also opens a server socket to listen for incoming requests. The ListenerPort property is used by a server-side ORB. At the end of the initialization performed by the init() method, the ORB is fully functional and ready to support the client application.


Parent: The client side

Previous topic: Stub creation

Next topic: Obtaining the remote object








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.