----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 4/2/00 8:53 PM, Kenny,  Chan Lai Hang <[EMAIL PROTECTED]> wrote:

> please let me explain my situation in detail. We are now using a
> ConnectionServlet for establishing a connectionPool. Whenever we need to
> connect to the database, we will use the following codes.
> 
> ServletConfig config = getServletConfig();
> ServletContext context = config.getServletContext();
> Servlet servlet = context.getServlet("ConnectionServlet");
> 
> We want a JServ containing ConnectionServlet will be running behind
> the firewall. As a result, I want to combine the servlets zone of two JServ
> (one infront and one behind of firewall) logically. Load Balancing and
> mod_rewrite seem do not work for me.

getServlet() is deprecated in future revisions of the Servlet API > 2.0, so
using it is a REALLY BAD IDEA!!!

You should use a singleton based connection pool like what Turbine has.

<http://java.apache.org/turbine/>

It will do everything that you need and more.

-jon



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