3 Replies Latest reply on Mar 25, 2013 4:42 AM by xiang yingbing

    How to deploy xxx.war outside $JBOSS_HOME/standalone/deployments deployment?

    xiang yingbing Master

      Dear guys,


          In jboss 5, we can deploy web application(xxx.war) through <context> element in server.xml:

          <Context docBase="C:\Apps\foo.war" reloadable="true" privileged="true" antiResourceLocking="false" path="/">




          I have a simple web application, file.war.

          I want to put it in a special directory instead of $JBOSS_HOME/standalone/deployments.

          How to deploy it into jboss 7?

          Is there a equivalent of <context> in standalone.xml?


          I googled many hours, they told me read:



              But, I am NOT sure if I can do things correctly.


          Please give me an example(code/xml snippet).



          Thank you very much!