Summary
How to specify Orbix 3.3.x server application’s listening port
Setting CORBA port
Defining a fixed listening port
Environment
Orbix 3.3.x
All supported platforms
Question/Problem Description
CORBA server applications listen for incoming requests on a specific port. This article describes how to specify this port for Orbix 3.3.x server applications.
Resolution
If the server application is started by the Orbix daemon, "putitj -port" command can be used to specify the server’s listening port:
> putitj -port 65519 <Server Name>
Similarly, this application is to be launched manually, it can be registered with the Orbix Daemon as "persistent", again specifying the port number:
> putitj -port 65519 <Server Name> -persistent
Alternatively, if the application does not use the Orbix daemon, the configuration variable "IT_IIOP_USE_LOCATOR" should be set to "false". The port can then be set in the application’s code as follows:
IE.Iona.OrbixWeb.Features.Config.setConfigItem("IT_IIOP_LISTEN_PORT",String.valueOf(65519));
The port must be set before the creation of the IOR. Please see the Orbix 3 "standAlone" demo for an example of setting the port in this way. This demo can be found here:
<ORBIX_ROOT>/demos/orbixjava/standalone/
#KnowledgeDocs
#Orbix