Obtaining Java


Integrating Resin

The Resin server's architecture is shown in Figure 2.1. The Resin system itself is written in Java with some JNI library code for advanced socket handling and OpenSLL support. The server executes as a standard application in relation to the operating system. All of the source code for the server is available on the Resin Web site, so you can examine it to see how it was implemented. Because the system is written in Java, a JRE is needed for basic execution.

click to expand
Figure 2.1: The Resin server architecture.

If you use Resin to deploy servlets, JSP pages, or EJBs, you will need a Java compiler (e.g., the Sun Java SDK or jikes, an IBM Java compiler). When a request is made of a JSP or servlet, the compiler compiles the source code and places it into the appropriate application directory. Once compiled, the CLASS file will execute within a Java Virtual Machine (JVM).

Ports

All requests to Resin will come from a Web browser using the HTTP protocol over the TCP/IP transport. The TCP/IP transport consists of an IP address and a port number. The IP address may temporarily be masked by a domain name, which is mapped to an IP address in due time. The traditional port for HTTP is 80. By default, the Resin HTTP server uses port 8080; this is done to maintain a cooperative environment in which other Web servers are executing on the same machine, as well as to accomodate development by providing a convenient port accessible without root access. In a production situation, the port should be changed to 80 to maintain consistency with Internet standards. Any Apache or IIS plug-ins are detected by Resin on port 6802.

This means that once Resin is installed, accessing the server will require the use of a port parameter in the URL. For example, if the server is installed on a machine with the IP address of 192.168.0.4, the URL would read

  • http://192.168.0.4:8080

As we will see in Chapter 15, "Resin Server Configuration," you can change the port number for the HTTP server when you use Resin in a production setting.




Mastering Resin
Mastering Resin
ISBN: 0471431036
EAN: 2147483647
Year: 2002
Pages: 180

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net