jbossas/jboss-as — pull request #429 by aloubyansky (2011-10-11 19:02:11+00:00)
Title: AS7-2071 mutable managed executor services for thread pools

Makes thread pool services' attributes mutable w/o restart where possible.

A problem with those that require a restart is that, attribute values aren't validated. For example, max-threads in scheduled thread pool requires a restart. Correct new value would look like

/subsystem=threads/scheduled-thread-pool=my:write-attribute(name=max-threads,value={"count"=>"4","per-cpu"=>"2"})

but

/subsystem=threads/scheduled-thread-pool=my:write-attribute(name=max-threads,value={"count"=>"4"})

will succeed too although per-cpu is still currently required and the config will be missing it. So a restart will fail to initialize the service.

I'm gonna look into this next.