tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <>
Subject Re: What in the API replaces HttpServer.getDefaultContext() ?
Date Tue, 25 Jan 2000 00:32:17 GMT
Arieh Markel wrote:

> I have been using the above mentioned method to get the default context
> for dynamic incorporation of servlets to a running application.
> What is the recommended method(s) for its replacement ?
> Just for reference, the incorporation of the servlet has to be done following
> the reception of an internal listener event that is fired when a
> servlet-accessible class instance has been created.

You can use ContextManager.getContext("/")

You can get a ContextManager in many wais, depends on where you
register your listener. The best way to plug it in is by using an interceptor,
(the API is not yet finalized).


View raw message