Leonardo Uribe created MYFACES-3553:
---------------------------------------
Summary: [GAE] Add param to select jar files to be scanned for
.faces-config.xml or .taglib.xml or annotations
Key: MYFACES-3553
URL: https://issues.apache.org/jira/browse/MYFACES-3553
Project: MyFaces Core
Issue Type: New Feature
Components: JSR-314
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
In MyFaces users list, it has been reported that Spring and JSF are slow in GAE
when they start, because it is necessary to scan the classpath for
.faces-config.xml or .taglib.xml or annotations.
It is possible to put myfaces jars and other jsf related jars outside
/WEB-INF/lib folder, but in GAE we can skip this limitation, so it becomes more
effective to indicate the jar files to scan in a web config param:
org.apache.myfaces.GAE_JSF_JAR_FILES
MyFaces jars does not need to be scanned so with this param it is possible to
set:
<context-param>
<param-name>org.apache.myfaces.GAE_JSF_JAR_FILES</param-name>
<param-value>none</param-value>
</context-param>
And skip scanning at all (/WEB-INF/classes will still be scanned).
With this changes, startup in GAE will be quick. Note this is not necessary in
other application containers, because initialization occur when the application
is deployed, and just take some seconds.
Anyway, I consider it is worth to do it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira