-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Frederic Bellier wrote:

> Hello ,
> 
> I am having a unique servlet generating all my web site. This servlet gets
> its information from my database to know what to do with a request.
> 
> Because JVM can not handle a lot of threads on this servlet I need a way to
> load balance the request between multiple instance of this servlets. I still
> want it to be multithreaded so I thought of having an instance of it in
> every zone and load balance between this zones.
> Do you think that will work for me?
depends ...
> 
> Another solution would be to have another servlet handling all the requests
> from the web server and forward them to different servlets. But the problem
> then is that Apache do not do servlet chaining so this first servlet will
> suffer from the same issue of having to many threads open at the same time.
> Is it possible to forward a request from one servlet to another having the
> first servlet thread dying even before the second respond to the web server
> directly?
> If this was possible then I could use the first one to manage a pool of
> instance of the other servlet by counting the number of threads from all
> these instances.
no

did you read the load-balancing paper in documentation area ?
you can have 1 zone distributed over n JVMs. That fits your need
apparently.
Jean-Luc


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to