You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Louis <os...@gmail.com> on 2012/03/03 00:54:15 UTC

instrumenting classes compiled from JSP

Hi,

If I want to dynamically instrument classes compiled from JSP pages, 
what is the best places to begin with? From my understanding, the 
process of JSP handling appears to work as follows:

1 The first request for a JSP page triggers the compilation of the page 
with Jasper.

2 The class file generated is written to the /work directory.

3 A classloader loads the class from the disk.

In steps 3, the class data may be loaded directly in memory by the 
classloader. So the best place to instrument seems to be between 2 and 
3, right before the class is loaded (if loading uses memory data). Since 
I'm new to Tomcat code base, where are the places should I start with, 
if my understanding is correct?

Thanks a lot.
Louis

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