-
1. Re: Configure WorkManagerService to inject LongRunningThreadPool
jaikiran May 18, 2012 3:40 AM (in response to thedude123)Jon, welcome to the forums!
Is this reproducible against the latest nightly builds https://community.jboss.org/thread/167590?
-
2. Re: Configure WorkManagerService to inject LongRunningThreadPool
thedude123 May 18, 2012 2:10 PM (in response to jaikiran)Thanks for the response, much appreciated.
I have tried with the latest nightly build and the thread no longer indicates that it is a default-short -running thread in its name.
Just out of curiosity, I put a bp in the new source and org.jboss.as.connector.subsystems.jca.WorkManagerAdd's performRuntime does not seem to recognize that i have a <long-running-threads> configuration.
if (operation.get(WORKMANAGER_LONG_RUNNING).isDefined() && operation.get(WORKMANAGER_LONG_RUNNING).asBoolean()) {
builder.addDependency(ThreadsServices.EXECUTOR.append(WORKMANAGER_LONG_RUNNING).append(name), Executor.class, wmService.getExecutorLongInjector());
}And when the WorkManagerService starts, the longRunning BlockingExecuter is null and as a result gets assigned the shortRunning one.
BlockingExecutor longRunning = (BlockingExecutor) executorLong.getOptionalValue();
if (longRunning != null) {
this.value.setLongRunningThreadPool(longRunning);
this.value.setShortRunningThreadPool((BlockingExecutor) executorShort.getValue());
} else {
this.value.setLongRunningThreadPool((BlockingExecutor) executorShort.getValue());
this.value.setShortRunningThreadPool((BlockingExecutor) executorShort.getValue());
}I am using the standalone-full.xml and JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes".
Cheers,Jon
-
3. Re: Configure WorkManagerService to inject LongRunningThreadPool
jesper.pedersen May 21, 2012 9:16 AM (in response to thedude123)Thanks for the report - we will take a look at it