1 2 Previous Next 26 Replies Latest reply on Feb 15, 2015 12:44 PM by Rahil Shaikh

    How to set JBoss 7 hot deploy?

    Areak Huang Newbie

      Hi All,

       

      I use JBoss Developer Studio + JBoss 7,and it work well.

      But I can not understand why JBoss 7 do not hot deploy,I try some method but faild.

       

      method one:

      jboss7\standalone\configuration\standalone.xml

      find
      <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
                 <configuration>
                      <jsp-configuration development="true"/>
                  </configuration>
                  <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
                  <virtual-server name="default-host" enable-welcome-root="true">
                      <alias name="localhost"/>
                      <alias name="example.com"/>
                  </virtual-server>
      </subsystem>


      add    <configuration>
                      <jsp-configuration development="true"/>
                  </configuration>

      but it is useless.

       

      method two:

       

      For standalone deployment, go to standalone/configuration directory and open standalone.xml. Look for the line below.

              <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">

                  <deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir"                deployment-timeout="60"/>

              </subsystem>

       

      Add this param to enable hot deploy  auto-deploy-exploded="true"

      Changes are as below:

       

              <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">

                  <deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir"                auto-deploy-exploded="true" deployment-timeout="60"/>

              </subsystem>

      when I changed any file the server would restart,this is not I want.

       

      Who hava any idea to make JBoss 7 hot deploy? When change the .jsp or .html files ,then I refresh the browse can see the changes.

        1 2 Previous Next