public class JBossWorkManagerTaskExecutor extends WorkManagerTaskExecutor
This is the JBoss equivalent of the CommonJ
WorkManagerTaskExecutor
adapter for WebLogic and WebSphere.
Note: This class does not work on JBoss 7 or higher. There is no known immediate replacement, since JBoss does not want its JCA WorkManager to be exposed anymore.
JBossWorkManagerMBean
CONTAINER_PREFIX
logger
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
IMMEDIATE, INDEFINITE, UNKNOWN
Constructor and Description |
---|
JBossWorkManagerTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
protected WorkManager |
getDefaultWorkManager()
Obtains the default JBoss JCA WorkManager through a JMX lookup
for the JBossWorkManagerMBean.
|
void |
setWorkManagerMBeanName(String mbeanName)
Identify a specific JBossWorkManagerMBean to talk to,
through its JMX object name.
|
afterPropertiesSet, doWork, doWork, execute, execute, prefersShortLivedTasks, scheduleWork, scheduleWork, setBlockUntilCompleted, setBlockUntilStarted, setBootstrapContext, setWorkListener, setWorkManager, setWorkManagerName, startWork, startWork, submit, submit
convertJndiName, isResourceRef, lookup, lookup, setResourceRef
getJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate
public void setWorkManagerMBeanName(String mbeanName)
The default MBean name is "jboss.jca:service=WorkManager".
protected WorkManager getDefaultWorkManager()
getDefaultWorkManager
in class WorkManagerTaskExecutor
JBossWorkManagerUtils.getWorkManager()