This chapter is for JOnAS administrators who intend to use RMI/IIOP to run JOnAS through a firewall.
The example that follows describes how to modify JOnAS configuration files in order to specify a range of ports to be used by RMI when using the IIOP protocol. This example considers a range of 10 ports, starting at port 33000, and gives the IP address 150.11.135.17 for the host running JOnAS.
Uncomment the following properties of the $JONAS_BASE/jacorb.properties file and specify the appropriate values for the port range and host IP address:
jacorb.net.server_socket_factory= org.jacorb.orb.factory.PortRangeServerSocketFactory jacorb.net.server_socket_factory.port.min=33000 jacorb.net.server_socket_factory.port.max=33010 OAIAddr=150.11.135.17 |
In the $JONAS_BASE/carol.properties file, specify the use of the IIOP protocol and set the port number for the registry to be the first port number of the range to be used:
carol.protocols=iiop carol.iiop.url=iiop://150.11.135.17:33000 |
Launch JOnAS:
service jonas start |
![]() | Note |
---|---|
This configuration for specifying the port numbers will not work if you launch JOnAS in background, so you must launch JOnAS in the foreground. |