| Summary | |
|---|---|
| Article Number | 26895 |
| Environment | Orbix 6.3 All Supported Operating Systems |
| Question/Problem Description |
Can client use the jdk orb to communicate with the Orbix domain?
How do clients running on machines without Orbix installed on it talk to Orbix domains?
what is recommended for clients using the JDK ORB?
How to set the ORB properties? |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution |
As SUN's ORB runtime cannot be used with Orbix applications, configure the JDK to use the Orbix ORB runtime instead by setting system properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass to the appropriate values.
Setting ORB Properties for the Orbix ORB:
The ORB properties can be set in one of the following ways:
• Using the iona.properties file
• Using Java interpreter arguments
1. Using the iona.properties file: Setting system properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass in the iona.properties file is the preferred way to configure your JDK to use the Orbix ORB runtime. Location of the iona.properties file:
The iona.properties file is located in the JDKHome/jre/lib directory, where
JDKHome is the JDK root directory
.
Contents of the iona.properties file:
The iona.properties file should contain the following two lines of text:
org.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl
org.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton
The first line sets org.omg.CORBA.ORBClass to the name of a class that implements org.omg.CORBA.ORB. The second line sets org.omg.CORBA.ORBSingletonClass to the name of a class that implements the static ORB instance returned from org.omg.CORBA.ORB.init() (taking no arguments). 2. Using Java interpreter arguments: Use the -Dproperty_name=property_value option on the Java Interpreter to specify the org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass properties. For example, to set the ORB properties for an orbix_app Orbix application:
java
-Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl\\
-Dorg.omg.CORBA.ORBSingletonClass=\\
com.iona.corba.art.artimpl.ORBSingleton orbix_app
|
| Workaround | |
| Notes |
Orbix 6 Product Documentation
CORBA Programmer's Guide, Java
CHAPTER 2 | Getting Started with Orbix -> Setting ORB Properties for the Orbix ORB
|
| Attachment |
| Created date: | 30 November 2011 |
|---|---|
| Last Modified: | 13 February 2013 |
| Last Published: | 12 May 2012 |
| First Published date: | 30 November 2011 |
#Orbix
#KnowledgeDocs




