You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Remy Maucherat <re...@apache.org> on 2006/09/26 15:56:04 UTC

Periodic events for servlets

Hi,

In Jasper, there's a feature allowing having background checking of JSP 
modifications. I think this is good to have in production, as on access 
checks is quite expensive, however, I do not like its implementation, 
which is using a thread for each webapp.

Instead, I am considering an interface (in the org.apache package, like 
the annotation processing one) that could be implemented by servlets 
(here, the JasperServlet), and which would be called by 
StandardWrapper.backgroundProcess. Pretty trivial stuff overall.

Comments ?

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Periodic events for servlets

Posted by Remy Maucherat <re...@apache.org>.
Henri Gomez wrote:
> Good idea, let save threads for AJP/HTTP connections :)
> 
> Till we could disable this feature (many use precompiled JSP), it
> seems reasonable.

Obviously, there has been a lot of problems with on access 
(re)compilation, due to its inherent complexity and heavy resource 
usage. While precompilation is better in real production environments, 
it doesn't hurt improving dynamic compilation if possible.

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Periodic events for servlets

Posted by Henri Gomez <he...@gmail.com>.
Good idea, let save threads for AJP/HTTP connections :)

Till we could disable this feature (many use precompiled JSP), it
seems reasonable.

2006/9/26, Remy Maucherat <re...@apache.org>:
> Hi,
>
> In Jasper, there's a feature allowing having background checking of JSP
> modifications. I think this is good to have in production, as on access
> checks is quite expensive, however, I do not like its implementation,
> which is using a thread for each webapp.
>
> Instead, I am considering an interface (in the org.apache package, like
> the annotation processing one) that could be implemented by servlets
> (here, the JasperServlet), and which would be called by
> StandardWrapper.backgroundProcess. Pretty trivial stuff overall.
>
> Comments ?
>
> Rémy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org