Configure Scanning in Seam 2.2.2
jpee85 Mar 4, 2013 3:50 AMHi there,
in one of our projects we are using seam 2.2.2 in a webapplication in combination with a cms which is preprocessing xhtml files and delivers them into the webapp together with static files like pdfs, docs and so on.
In our testenvironment the loadtimes of every page in that webapps are 10 seconds + because the whole webapp is scanned on every request. This takes so long because of the structure of the webapp including 200k files (the xhtml and static files) which are scanned on every request. In the documentation of the URLScanner I can see that it is possible to exclude directories from the scanning process, how can I configure that?
On Startup:
09:20:30,277 TRACE [DeploymentStrategy] Adding org.jboss.seam.bpm.PageflowDeploymentHandler as a deployment handler
09:20:30,281 TRACE [DeploymentStrategy] Using default URLScanner
09:20:30,281 TRACE [DeploymentStrategy] Using default URLScanner
09:20:30,285 TRACE [URLScanner] scanning: /opt/apache/tomcat-6.0.36/vhosts/myhost/portal/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar
09:20:30,285 TRACE [URLScanner] scanning: /opt/apache/tomcat-6.0.36/vhosts/myhost/portal/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar
09:20:30,285 TRACE [URLScanner] archive: /opt/apache/tomcat-6.0.36/vhosts/myhost/portal/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar
09:20:30,285 TRACE [URLScanner] archive: /opt/apache/tomcat-6.0.36/vhosts/myhost/portal/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar
09:20:30,286 TRACE [Scanner] found META-INF/
09:20:30,286 TRACE [Scanner] found META-INF/
....
09:21:31,134 TRACE [Scanner] found media/
09:21:31,134 TRACE [Scanner] found media/filea.pdf
09:21:31,134 TRACE [Scanner] found media/fileb.pdf
09:21:31,134 TRACE [Scanner] found media/filec.pdf
09:21:31,134 TRACE [Scanner] found media/filed.pdf
09:21:31,134 TRACE [Scanner] found media/filee.pdf
09:21:31,134 TRACE [Scanner] found media/filef.pdf
...
On Request scanned again:
....
09:31:31,148 TRACE [Scanner] found media/
09:31:31,148 TRACE [Scanner] found media/filea.pdf
09:31:31,148 TRACE [Scanner] found media/fileb.pdf
09:31:31,148 TRACE [Scanner] found media/filec.pdf
09:31:31,148 TRACE [Scanner] found media/filed.pdf
09:31:31,148 TRACE [Scanner] found media/filee.pdf
09:31:31,148 TRACE [Scanner] found media/filef.pdf
...
Webapp structure:
/WEB-INF
/META_INF
/media
/pages
Thanks for any help in advance
JPee