>-every connection request will utilize ur pool
>-your pool will should be shared for every user.
>-make your pool object static so that it will only create a single
>instance once instantiated.

I have the Pool class that starts:

public class ConnectionPool{
...
}
Do I have to write it like: public static class ConnectionPool{ ...} ???
If I do it like that I get the next error:
The type type RR.jdbc.ConnectionPool can't be declared static. It is
already top-level, since it is a member of a package.
public static class ConnectionPool {

Then I have tried to do it this other way:
when I create the pool from the bean I put:
private static ConnectionPool pool;
pool = new ConnectionPool(params);

Is it right this way?

thanks

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to