views:

44

answers:

1

Hi,

I have to modify content of many WAR start pages to add some functionality. I can't use filters to modify cause filter needs to be placed in Web Archive. The same with servlet etc. Any clue how to do this?

+1  A: 

You could modify the global web.xml of the container. This will affect all applications:

This document defines default values for *all* web applications
loaded into this instance of Tomcat.  As each application is
deployed, this file is processed, followed by the
"/WEB-INF/web.xml" deployment descriptor from your own applications.

Alternatively you could implement a Valve which you'll install in server.xml for a specific host (which will be running all the wars).

cherouvim
OK but how can I access my EJB? To process all start pages I need an access to my EJB. I forgot to mention that all my WARs, ejb jars etc. are packaged in EAR.
Ajan