[
https://jira.jboss.org/jira/browse/JBAS-7604?page=com.atlassian.jira.plug...
]
Jimmy Wilson resolved JBAS-7604.
--------------------------------
Fix Version/s: JBossAS-6.0.0.M2
Resolution: Done
Fixed as described in the description.
org.jboss.test.profileservice.test.HDScannerTestCase has an added test for this:
testSettingScanEnabledToFalseDoesNotCauseActiveScan.
HDScanner start() ignores config property scanEnabled
-----------------------------------------------------
Key: JBAS-7604
URL:
https://jira.jboss.org/jira/browse/JBAS-7604
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: ProfileService
Affects Versions: JBossAS-5.1.0.GA, JBossAS-6.0.0.M1
Reporter: Brian Stansberry
Assignee: Jimmy Wilson
Fix For: JBossAS-6.0.0.M2
The setter for the scanEnabled property does not cache the value, it only uses it to
cancel an already-started scheduled task. If the setter is called during bean
configuration, there is no scheduled task, the setter essentially becomes a no-op, and
when start() is called the task is scheduled.
Effect is the only way to disable HDScanner via configuration is to remove the
deployment; you can't leave it deployed but configure whether it is enabled (e.g. with
a system property).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira