Hi,

>Actually I asked the question.  Problem is I don't want the filter to
be
>loaded first.  I'm trying to implement a webapp-wide connection pool to
>mysql as documented in "Java Servlet's Developper's guide".  I have a
class
>'ConnectionServlet' that is creates and initializes the connection
pool.
>The webapp has a login filter that needs a connection from the
connection
>pool.  The webapp loads the login filter first.  I don't really want to
>remove the filter because its integral to the application's design.
Is
>there another solution, to getting the connection pool instantiated
before
>the filter?

Double oops for me ;)

Yes there's another, better solution: use a ServletContextListener to
initialize your connection pool.  As specified in the SRV location from
Senor Wildenberg, this will get called before any filters and servlets.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to