Howto: Using JOnAS through a Firewall

The content of this guide is the following:

  1. Target Audience and Rationale
  2. RMI/IIOP through a Firewall

Target Audience and Rationale

The target audience for this document is JOnAS administrators intending to specify the range of ports to be used by RMI on JOnAS, in order to pass through firewalls.

RMI/IIOP through a Firewall

This section 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.

The following example uses a range of 10 ports, starting at port 33000. The IP address 150.11.135.17 is also given as an example for the host running JOnAS.

$JONAS_BASE/jacorb.properties file

The following properties of this file should be uncommented and specified:

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

$JONAS_BASE/carol.properties file

Use of the iiop protocol should be specified, and the port number for the registry must be the first port number identified in the range above.

carol.protocols=iiop
carol.iiop.url=iiop://150.11.135.17:33000

Launching JOnAS

This configuration for specifying the port numbers will not work when launching JOnAS in the background; it must be launched in the foreground:

jonas start -fg