Bluehost.com Web Hosting $6.95

integrating java into Apache

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


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2004
Ashley Swinson
 
Posts: n/a
Default integrating java into Apache

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.


  #2 (permalink)  
Old 07-04-2004
Jim Patterson
 
Posts: n/a
Default Re: integrating java into Apache

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0