jeudi 28 mai 2015

Override values in web.xml for jboss eap 6

I have a requirement, In case of jboss change the value in web.xml at run time, before deployment. Is there a way to do this?

<init-param>
      <param-name>com.sun.jersey.config.property.packages</param-name>
      <param-value>com.testRest</param-value>
</init-param>

Same ear file is used for deployment on all servers, hence need to remove above code from web.xml at run time before deployment on jboss.

If I remove this code, this stops working in dev environment, that deploys application on Tomcat.

Please suggest ways to make it work with both jboss and Tomcat or a way to change web.xml at run time.




Aucun commentaire:

Enregistrer un commentaire