Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Execute method each request

David Smith

2007-07-26

Replies:

What you describe is exactly what filters were created for. It's even
in the servlet spec, making it a requirement of all java servlet containers.

--David

Trumml wrote:

>I want to execute a method each time a request is performed to my jsf site.
>The implementation for this request should remain in a jar file which is
>packed into the WAR file under WEB-INF/lib directory.
>I guess there is no solution to do this with a valve, because the class
>(jar) for the valve must remain inside tomcat classpath I guess.
>Is there any other solution to invoke a method of a class inside the
>WEB-INF/lib directory each request... Additionally the method must be
>executed in the thread of the request.
>
>I deploy the WAR into JBoss 4.0.5 with tomcat 5.5
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.