Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4431

HDScanner's setScanEnabled() method Fails to enable scanning on first invocation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.0
    • EAP 5.0.1
    • System
    • None
    • Workaround Exists
    • Hide

      Calling the setScanEnabled(true) a second time enables scanning. The first time sets the member variable making the second call setup the activeScan member properly.

      Show
      Calling the setScanEnabled(true) a second time enables scanning. The first time sets the member variable making the second call setup the activeScan member properly.

    Description

      The org.jboss.system.server.profileservice.hotdeploy.HDScanner bean's setScanEnabled() method fails when setting to "true" if it was previously set to "false" When enabling, the setter calls the start():

      public synchronized void setScanEnabled(boolean scanEnabled)
      {
      if (scanEnabled == true && activeScan == null && scanExecutor != null)

      { start(); }

      else if (scanEnabled == false && activeScan != null)

      { stop(); }

      this.scanEnabled = scanEnabled;
      }

      However, if the scanEnabled member variable (this.scanEnabled) is false this call does nothing:

      public void start()
      {
      if (scanEnabled)

      { activeScan = scanExecutor.scheduleWithFixedDelay(this, 0, scanPeriod, TimeUnit.MILLISECONDS); }

      }

      Attachments

        Issue Links

          Activity

            People

              rhn-support-miclark Mike Clark
              rhn-support-miclark Mike Clark
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: