public class GlassFishWorkManagerTaskExecutor extends WorkManagerTaskExecutor
This is the GlassFish equivalent of the CommonJ
WorkManagerTaskExecutor
adapter for WebLogic and WebSphere.
Note: On GlassFish 4 and higher, a
DefaultManagedTaskExecutor
should be preferred, following JSR-236 support in Java EE 7.
CONTAINER_PREFIX
logger
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
IMMEDIATE, INDEFINITE, UNKNOWN
Constructor and Description |
---|
GlassFishWorkManagerTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
protected WorkManager |
getDefaultWorkManager()
Obtains GlassFish's default thread pool.
|
void |
setThreadPoolName(String threadPoolName)
Identify a specific GlassFish thread pool to talk to.
|
afterPropertiesSet, doWork, doWork, execute, execute, prefersShortLivedTasks, scheduleWork, scheduleWork, setBlockUntilCompleted, setBlockUntilStarted, setBootstrapContext, setTaskDecorator, setWorkListener, setWorkManager, setWorkManagerName, startWork, startWork, submit, submit, submitListenable, submitListenable
convertJndiName, isResourceRef, lookup, lookup, setResourceRef
getJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate
public void setThreadPoolName(String threadPoolName)
The thread pool name matches the resource adapter name in default RAR deployment scenarios.
protected WorkManager getDefaultWorkManager()
getDefaultWorkManager
in class WorkManagerTaskExecutor