jsf - Ways to override context-param in web.xml during or after deployment in JBoss AS 6 -


in current jsf 2 project, 1 setting in web.xml

<context-param>     <param-name>javax.faces.project_stage</param-name>     <param-value>development</param-value> </context-param> 

and value should set production instead development on deployment in jboss as.

are there simple ways override or modify web.xml entry during or after deployment?


update: found this article explains files in jboss as5 deployers directory. author writes:

there times when want configuration apply web applications, jboss has global versions of these files located in deployers directory

so global-level configuration of web.xml, file deployers/jbossweb.deployer/web.xml can used. check if these files can override values or add values application-level web.xml

if know if deployers/jbossweb.deployer/web.xml overrides values in application level web.xml, please leave message here ;)

if using maven can filtered copy of web.xml , set values properties file. example:

<properties>     <stage.dir>development</stage.dir> </properties> <build>     <resources>         <resource>             <directory>src/main/resources</directory>             <filtering>true</filtering>             <includes>                 <include>**/*.properties</include>             </includes>         </resource>     </resources> </build> 

and set different values per profile, have deploy mvn goal -p production. see properties, profiles.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -