There is no built in hook.  My recommendation is to write your own class
that subclasses RPCRouterServlet.  The init() should call super.init(),
then do your custom initialization.  That way, you don't have to poke
around the source, although you will want to change web.xml to either
add your new servlet or change the rpcrouter mapping to point to your
servlet.

Scott Nichol

----- Original Message -----
From: "Johannes Fiala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 12:13 PM
Subject: Caching database connections across requests


> Hi there!
>
> Does anybody know how I can easily intercept the servlet
initialization
> routine of the servlet rpcrouter?
> I'd like to extend it that way, that if the servlet is loaded, 10
database
> connections will be opened, available for subsequent requests.
>
> So I'd need to include a kind of entry point class easily in the
> rpcrouter's initialization routine. Does anybody know how I can
achieve
> this without having to fumble in the soap.war - Sourcefiles?
>
> Wouldn't it be a good idea to have such entrypoints at least in the
> rpcrouter serlvet's initializiation routine?
>
> thx alot
> Johannes


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

Reply via email to