14 Replies Latest reply: Jun 15, 2011 3:25 PM by bwilly RSS

    Configuring JBoss to point to a custom directory instead of default/deploy directory

    infinity2heaven Novice

      Instead of deploying the war or exploded war to default/deploy directory, can JBoss 6 be pointed to a local exploded war file structure, keeping the configuration of default server?

       

      In Tomcat, this can be achieved by placing a <context-root>.xml file in conf/Catalina/localhost

       

      <Context docBase="C:/Projects/SampleApp/WebRoot/" debug="100" reloadble="false">

                <WatchedResource>WEB-INF/web.xml</WatchedResource>

      </Context>

       

      The idea is to work from a project source structure and let ant/eclipse copy classfiles directly without the need to redeploy each time. Coupled with JRebel, the classes can be hot deployed instantly.