IBM SDK for Java

ORB Guide

Version 5 Release 0

Copyright International Business Machines Corporation 2003, 2010.
US Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

Platforms
Installation and setup
Using the IBM ORB development tools
Using the IBM ORB naming service
Release contents
Further reading
Coexistence considerations
Notices
Trademarks

Platforms

This release of the IBM® Java™ ORB (Object Request Broker) runs on SDKs for HP-UX and Solaris that have been adapted by IBM, and the Sun Microsystems 32-bit SDK for Windows®.

The exact platforms supported by this release of the IBM Java ORB are:

For HP-UX, this release covers both 32- and 64-bit, Itanium® and PA-RISC processors.

This version of the IBM Java ORB is not supported on the IBM 32-bit SDK for Windows, Java Standard Edition, Version 5.0.

Installation and setup

The IBM Java ORB is included with IBM-supplied SDKs. To install the IBM Java ORB on a non-IBM SDK, extract the orb package in the SDK directory. Ensure that the IBM Java ORB is included before any other ORB implementation in the PATH environment variable.

To install the IBM Java ORB on Solaris and HP Hybrid Java SDKs:

  1. Set up the following environment variables:
    1. Set JAVA_HOME environment variable to point to the location where your SDK is installed (for example, /opt/ibm/IBMJava2-50/).
    2. In your PATH environment variable, ensure that <JAVA_HOME>/ibm_bin precedes <JAVA_HOME>/bin.

To install the IBM Java ORB on Windows:

  1. Unzip the orb50-<DATE>.zip file in the directory where your SDK is installed (for example, C:\Program Files\Java\jre1.5.0_06 ).
  2. Set up the following environment variables:
    1. Set JAVA_HOME environment variable to point to the location where your SDK is installed.
    2. In your PATH environment variable, ensure that <JAVA_HOME>\ibm_bin precedes <JAVA_HOME>\bin.

Using the IBM ORB development tools

The scripts ibm_bin\rmic.bat and ibm_bin\idlj.bat (on HP and Solaris, the files do not have the .bat extension) allow you to use the IBM version of idlj and the IBM generators for the rmic -iiop and -idl options.

These scripts do not work on Windows 95 and Windows 98.

If you are starting idlj from your applications code, you must call the main class com.ibm.idl.toJavaPortable.Compile.

If you want to start rmic from your applications code, ensure that lib\ibmtools.jar is on the applications classpath (not on the rmic classpath). The main class is sun.rmi.rmic.Main.

To check whether you are using the IBM Java ORB, use the -version option, which is valid only if used with -iiop or -idl:

rmic -iiop -version

If the output is:

-version is an invalid option or argument

you are not using the IBM version. You should see a message similar to:

IBM Compiler for RMI over IIOP build orb50-yyyymmdd

Using the IBM ORB naming service

The scripts ibm_bin\tnameserv.bat and ibm_bin\orbd.bat (HP and Solaris, the files do not have the .bat extension) allow you to use the IBM version of tnameserv and the reference implementation of orbd.

Restriction: These scripts do not work on Windows 95 and Windows 98.

If you are starting tnameserv from your applications code, you must call the main class com.ibm.CosNaming.TransientNameServer.

Release contents

The IBM Java ORB includes tools, data files, and jar files.

The files included are:

Further reading

For further information about the IBM ORB extension, see the information supplied with the IBM v5.0 SDKs.

You can also visit http://www.ibm.com/developerworks/java/jdk/additional/rmi-iiop.html.

Coexistence considerations

The IBM Java ORB uses the Java Endorsed Standards Override Mechanism to coexist with other implementations.

When you install the IBM Java ORB, the CORBA API provided in ibmorbapi.jar, together with the properties defined in orb.properties, overrides the CORBA API from your SDK. The following properties defined in jre/lib/orb.properties cause the IBM ORB runtime implementation to be used by default:

org.omg.CORBA.ORBClass=
                  com.ibm.CORBA.iiop.ORB

org.omg.CORBA.ORBSingletonClass=
                  com.ibm.rmi.corba.ORBSingleton

javax.rmi.CORBA.UtilClass=
                  com.ibm.CORBA.iiop.UtilDelegateImpl

javax.rmi.CORBA.StubClass=
                  com.ibm.rmi.javax.rmi.CORBA.StubDelegateImpl

javax.rmi.CORBA.PortableRemoteObjectClass=
                  com.ibm.CORBA.iiop.PortableRemoteObject

If you want to use another vendor's ORB runtime with IBM's CORBA API, change the appropriate values in the orb.properties file. The vendor should provide these values.

If you want to use your SDK's original CORBA API with IBM's ORB runtime, move jre/lib/endorsed/ibmorbapi.jar to a different directory. If you then want to use the IBM CORBA API for a particular Java invocation, set the Java system property java.endorsed.dirs to include the directory to which ibmorbapi.jar has been moved, followed by the standard endorsed directory (jre/lib/endorsed).

For more information about the Java Endorsed Standards Override Mechanism, see http://java.sun.com/j2se/1.5.0/docs/guide/standards/index.html.

Notices

This information was developed for products and services offered in the U.S.A.

IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service.

IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to:

For license inquiries regarding double-byte character set (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to:

The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law:

INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.

This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice.

Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.

IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.

Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact:

Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.

The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us.

Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurements may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment.

Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.

All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only.

COPYRIGHT LICENSE:

This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. The sample programs are provided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of the sample programs.

Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows:

© (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. © Copyright IBM Corp. _enter the year or years_.

If you are viewing this information softcopy, the photographs and color illustrations may not appear.

Trademarks

IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at http://www.ibm.com/legal/copytrade.shtml.

Intel and Itanium are trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

Microsoft, Windows and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.

Other company, product, or service names may be trademarks or service marks of others.