3 Replies Latest reply on Aug 22, 2008 6:26 AM by jaikiran pai

    JBoss5 deployment scanner configuration

    Wolf-Dieter Fink Master

      Hi,
      with JBoss4 the jboss-service.xml contains the scanner configuration, include lib/deploy directory and the configuration of the period to scan for new files.

      I found the 'lib' configuraration, but I miss the 'deploy' and the period settings.
      Where can I set this parameter?

        • 1. Re: JBoss5 deployment scanner configuration
          jaikiran pai Master

          Are you asking, how to change the hot deployer scanner period in JBoss-5? You can find this in %JBOSS_HOME%\server\< serverName>\conf\profile-service.xml. Look for HDScanner which has a scanPeriod attribute.

          • 2. Re: JBoss5 deployment scanner configuration
            Wolf-Dieter Fink Master

            Thanks jaikiran,
            this looks like the right configuration.
            Here I found the deploy path list and the scanner.

            Do you know how to deactivate scanning? scanPeriod=0 ???
            And how to deactivate farming?

            • 3. Re: JBoss5 deployment scanner configuration
              jaikiran pai Master

               

              "wdfink" wrote:

              Do you know how to deactivate scanning? scanPeriod=0 ???


              Add the scanEnabled attribute and set it to false:

              <!-- Hotdeployment of applications -->
               <bean name="HDScanner"
               class="org.jboss.system.server.profileservice.hotdeploy.HDScanner">
               <property name="mainDeployer"><inject bean="MainDeployer"/></property>
               <!-- Workaround for JBMICROCONT-176
               -->
               <property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property>
               <!-- Broken due to JBMICROCONT-176
               <property name="controller"><inject bean="jboss.kernel:service=Kernel" property="controller"/></property>
               -->
               <property name="profileService"><inject bean="ProfileService"/></property>
               <property name="scanPeriod">5000</property>
               <property name="scanEnabled">false</property>
               <property name="scanThreadName">HDScanner</property>
               </bean>


              "wdfink" wrote:

              And how to deactivate farming?


              Clustering related? Sorry, i don't have an answer on this.