Perform the following steps to customize the Object Request Broker:
As Table 23 shows, the ORB location is specified by special variables in the CWSharedEnv file. You must modify these variables in the CWSharedEnv file to change its location.
Other ORB properties are listed in the ORB_PROPERTY variable of the CWSharedEnv file. In this variable, each IBM ORB property is preceded by the -D command-line option. To add or change an ORB property, you must add or change the appropriate -D option in the ORB_PROPERTY variable of the CWSharedEnv file. Properties you specify in the CWSharedEnv file override any other settings from the configuration file.
For example, to specify the maximum number of threads, you can take any of the following actions:
ORB_PROPERTY=-DORBNamingProvider=CosNaming
-Dorg.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB
-Dorg.omg.CORBA.ORBInitialPort=%ORB_PORT%
-Dorg.omg.CORBA.ORBInitialHost=%ORB_HOST%
-Dcom.ibm.CORBA.Debug.Output=null
-Dcom.ibm.CORBA.ThreadPool.MaximumSize=100
start_server.....-Dcom.ibm.CORBA.ThreadPool.MaximumSize=100
[CORBA]
OAthreadMax=100
Table 23. IBM Java ORB properties that can be customized
IBM ORB property | Configuration parameter | Description |
---|---|---|
com.ibm.CORBA.ListenerPort | OAport | Port number on which the ORB server (within InterChange Server Express) listens for incoming requests. |
com.ibm.CORBA.LocalHost | OAipAddr | IP address or host name of the machine on which the ORB server (within InterChange Server Express) is running. |
com.ibm.CORBA.ThreadPool. MaximumSize | OAthreadMax | Maximum number of threads that the connection manager can create. The default value (zero) indicates that no size restriction exists. |
com.ibm.CORBA.ThreadPool. InactivityTimeout | OAthreadMaxIdle | The time (in seconds) before an idle thread is destroyed. |
com.ibm.CORBA.RequestTimeout | None | Number of seconds that a CORBA request waits before timing out. By default, there is no timeout; the ORB waits indefinitely for a response. |
com.ibm.CORBA.LocateRequest | None | Timeout value (in seconds) for Locate Requests. |
com.ibm.CORBA.FragmentTimeout | None | Maximum length of time that the ORB waits for second and subsequent message fragments before it times out. Set this property to zero to indicate no timeout. The default value is 30000. |