Context definition file in war file

来源:百度文库 编辑:神马文学网 时间:2024/04/27 17:49:51
In addition to nesting Context elements inside aHost element, you can also store them:
in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files
Note, the context definition file put into war file MUST be named as context.xml!