To process J2EE applications, a web server acts as a client that communicates with JRun. Therefore, the web server must establish a connection to JRun. A JRun connector is a filter that intercepts requests to the external web server and determines whether to pass the requests to the web server or process them by JRun. JRun provides native server connection modules that make this connection.
A native server connection module is compiled for the specific web server, hardware architecture, and operating system. JRun has connectors for NSAPI, ISAPI, and Apache 1.3 and 2.0 DSO interfaces, which support NES, Zeus, IIS, and Apache web servers for each JRun-supported hardware architecture and operating system.
JRun 4 can function as a stand-alone Java application server and as a plug-in module that adds web application support to an existing web server. As a stand-alone product, JRun serves up pages using its integrated JRun Web Server (JWS). As a plug-in module, you use the Web Server Configuration tool to connect JRun to your external web server.
JRun supports a wide variety of web servers. The basic procedure for configuring the connection between JRun and a web server is the same for all web servers, however, each web server has unique configuration information and settings.
You typically use the Web Server Configuration tool to configure a connection between the web server and JRun server running on the same computer. However, you do not have to install the web server and JRun on the same computer. When you connect JRun to an external web server, you must choose a JRun server or cluster that will process the web server requests.
Note: If the JRun server participates in a cluster, the web server connector automatically enables load balancing and failover.
For a more in-depth discussion of JRun connectors and how to set up JRun in a distributed environment, see JRun Administrator's Guide.
Note: The JRun server must be installed and started before running the Web Server Configuration tool. Running the Web Server Configuration tool requires Administrator privilege (Windows NT) or root privilege (UNIX).
The following is a general procedure for connecting JRun to an external web server.
For details, see Chapter 2, "Installing JRun".
For details, see "Running the Web Server Configuration tool".
For details, see "Verifying the connection between JRun and your external web server".
The remaining sections describe this procedure for specific web servers supported by JRun:
For a detailed list of supported web servers and platforms, see "System requirements for installing JRun," in Chapter 1.
JRun lets you use Secure Sockets Layer (SSL) for communications between the web server and a JRun server. Typically, this is not necessary because the web server is behind a firewall in most production environments. However, you can use SSL with the web server connector for maximum security.
To enable SSL for the web server connector, you must configure the JRun server ProxyService for SSL before running the Web Server Configuration tool.
keytool command; for example:keytool -genkey -dname "cn=<server name or IP address>, ou=JRunEngineering, o=Macromedia,
L=Newton, ST=MA, C=US" -keyalg rsa -keystore <keystore name>
When prompted, enter appropriate passwords that have six or more characters.
keytool command.Note: In a production environment you obtain a signed certificate from a certificate authority.
keyStore, keyStorePassword, and trustStore (optional) attributes to appropriate values. The keyStore and trustStore attributes are the paths and filenames of the keystore and truststore files.
For details, see "Running the Web Server Configuration tool".