Index Changes
This is version 4. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

ORB Configuration

Introfuction

An ORB makes it possible for CORBA objects to communicate with each other by connecting objects making requests (clients) with objects servicing requests (servers). Java provides the ORB class to obtain references to objects implemented anywhere on the network. The ORB class also provides "pluggable ORB implementation" APIs that allow another vendor's ORB implementation to be used. To choose an orb implementation we have to specify standard java corba properties and additional properties depending on the particular implementation.

Standard Java CORBA Properties

Property Name Property Value
org.omg.CORBA.ORBClass class name of an ORB implementation
org.omg.CORBA.ORBSingletonClass class name of the ORB returned by init()

Additional properties depending on ORB implementation

We have to specify in the ORB implementation how to obtain an initial object references to the NameService. If we use JACORB, we have to add a property named ORBInitRef.NameService in the xbean file.

Here's an example of how to set all the informations needed for the JACORB implementation in the xbeans.xml:


    <property name="orbProperties">
      <props>
        &lt;prop key="org.omg.CORBA.ORBClass">org.jacorb.orb.ORB</prop>
        &lt;prop key="org.omg.CORBA.ORBSingletonClass">org.jacorb.orb.ORBSingleton</prop>
        &lt;prop key="ORBInitRef.NameService">corbaloc::localhost:1050/NameService</prop>
      &lt;/props>
    &lt;/property>

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This particular version was published on 02-May-07 03:31 AM, -0700 by 213.174.165.188