This content has been marked as final.
Show 3 replies
-
1. Re: Setting URLDeploymentScanner.ScanEnabled at runtime
adrian.brock Dec 20, 2005 2:51 PM (in response to mnasato)Yes, create a feature request. Providing a patch speeds up the process.
"mnasato" wrote:
and now it seems to work fine, disabling/enabling scanning is applied at runtime. But maybe I'm missing something; what are these issues the comment is referring to? Otherwise I'll open a feature request in Jira.
If this is going to be dynamic, the correct synchronization of the state across threads.
Including race conditions with the shutdown processing. -
2. Re: Setting URLDeploymentScanner.ScanEnabled at runtime
adrian.brock Dec 20, 2005 2:55 PM (in response to mnasato)e.g. Your patch is incorrect if the deployment scanner is in the "stopped" state
or if somebody sets scanEnabled while it is doing its initial pass in startService() -
3. Re: Setting URLDeploymentScanner.ScanEnabled at runtime
mnasato Dec 20, 2005 6:34 PM (in response to mnasato)"adrian@jboss.org" wrote:
e.g. Your patch is incorrect if the deployment scanner is in the "stopped" state
or if somebody sets scanEnabled while it is doing its initial pass in startService()
Right, because startService() and stopService() use the same "enabled" field in scannerThread... but this actually means that invoking stopService() already does what I was trying to do by setting ScanEnabled to false! Doh.
So no code changes are really needed, I've just updated that misleading wiki page.