You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by zooo doush <zu...@yahoo.com> on 2008/08/29 07:54:44 UTC

[users@httpd] Using Servlets in Apache HTTPD Server

Hi,

 I have 2 project I'm working on, one of them is built using PHP the other is built using Servlets. Currently they run on 2 separate servers Apache HTTPD and Tomcat. But I want to integrate the 2 projects and to make the work run faster I need to run both of them in 1 server if possible (that serves both PHP and Servlets).

  I was searching for a way to make Apache HTTPD server work with servlets without sending requests into any other server (i.e. Tomcat). I found most of the people using mod_proxy_ajp or mod_jk as modules in HTTPD server and this will pass servlets requests into Tomcat server. But I think that will make my implementation much slower (sending and receiving requests between the 2 servers will have communication overhead). 

Is there a way to make Servlets work in Apache without sending requests into Tomcat? my main concern is the slowness that will happened because of the communication between the 2 servers.

 Thanks,

    Iyad



      

Re: [users@httpd] Using Servlets in Apache HTTPD Server

Posted by Krist van Besien <kr...@gmail.com>.
On Fri, Aug 29, 2008 at 07:54, zooo doush <zu...@yahoo.com> wrote:

> Is there a way to make Servlets work in Apache without sending requests into
> Tomcat? my main concern is the slowness that will happened because of the
> communication between the 2 servers.

The best way to make Servlets work "in Apache" is by using Tomcat and
mod_proxy_ajp.The "slowness" you are worried about doesn't happen,
even if Apache and Tomcat are on separate machines.

Googling turns up that some people have managed to run tomcat "in
process", but this aparently is lots of pain for no or little gain,
which explain why nobody really does it this way.

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org