This is a discussion on integrating java into Apache within the Windows Web Servers forums, part of the Web Server and Related Forums category; I want to incorporate a java compression algorithm onto a Web page at the server and decode/display the page ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Ashley Swinson wrote:
> I want to incorporate a java compression algorithm onto a Web page at the > server and decode/display the page on the client. How do I integrate Java > into the Apache server? I don't know where to start. There are a couple of ways you can go: - Use JNI (Java Native Interface) to call the Java functionality when you need it. It's likely best to wrap this in an Apache module, since if you just use a CGI the Java startup per web page would likely negate the benefits of compressing. There is information on JNI at the Java website (http://www.java.com), or in the JDK documentation. - Put the code into an applet, and link it to your web server using a connector (see http://jakarta.apache.org/tomcat/faq/connectors.html). You can use Tomcat from Apache (which is where this page points), or some other JSP host. Both of these will take a fair amount of coding and "learning curve" to get up and running. If you're willing to use something other than Apache as the web server, you can also use the web server in a JSP container like Tomcat directly. Since you're generating the pages in Java already, this may well be more efficient. -- Jim Patterson Ottawa, CANADA |