Class JBossWorkManagerTaskExecutor
- java.lang.Object
- org.springframework.jndi.JndiAccessor
- org.springframework.jndi.JndiLocatorSupport
- org.springframework.jca.work.WorkManagerTaskExecutor
- org.springframework.jca.work.jboss.JBossWorkManagerTaskExecutor
- All Implemented Interfaces:
Executor
,WorkManager
,Aware
,InitializingBean
,AsyncListenableTaskExecutor
,AsyncTaskExecutor
,TaskExecutor
,BootstrapContextAware
,SchedulingTaskExecutor
@Deprecated public class JBossWorkManagerTaskExecutor extends WorkManagerTaskExecutor
Deprecated.as of Spring 4.0, since there are no fully supported versions of JBoss that this class works with anymoreSpring TaskExecutor adapter for the JBoss JCA WorkManager. Can be defined in web applications to make a TaskExecutor reference available, talking to the JBoss WorkManager (thread pool) underneath.This is the JBoss equivalent of the CommonJ
WorkManagerTaskExecutor
adapter for WebLogic and WebSphere.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. As of JBoss/WildFly 8, a
DefaultManagedTaskExecutor
may be used, following JSR-236 support in Java EE 7.- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
org.jboss.resource.work.JBossWorkManagerMBean
Field Summary
Fields inherited from class org.springframework.jndi.JndiLocatorSupport
CONTAINER_PREFIX
Fields inherited from class org.springframework.jndi.JndiAccessor
logger
Fields inherited from interface org.springframework.core.task.AsyncTaskExecutor
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
Fields inherited from interface javax.resource.spi.work.WorkManager
IMMEDIATE, INDEFINITE, UNKNOWN
Constructor Summary
Constructors Constructor Description JBossWorkManagerTaskExecutor()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected WorkManager
getDefaultWorkManager()
Deprecated.Obtains the default JBoss JCA WorkManager through a JMX lookup for the JBossWorkManagerMBean.void
setWorkManagerMBeanName(String mbeanName)
Deprecated.Identify a specific JBossWorkManagerMBean to talk to, through its JMX object name.Methods inherited from class org.springframework.jca.work.WorkManagerTaskExecutor
afterPropertiesSet, doWork, doWork, execute, execute, prefersShortLivedTasks, scheduleWork, scheduleWork, setBlockUntilCompleted, setBlockUntilStarted, setBootstrapContext, setTaskDecorator, setWorkListener, setWorkManager, setWorkManagerName, startWork, startWork, submit, submit, submitListenable, submitListenable
Methods inherited from class org.springframework.jndi.JndiLocatorSupport
convertJndiName, isResourceRef, lookup, lookup, setResourceRef
Methods inherited from class org.springframework.jndi.JndiAccessor
getJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate
Constructor Detail
JBossWorkManagerTaskExecutor
public JBossWorkManagerTaskExecutor()
Deprecated.
Method Detail
setWorkManagerMBeanName
public void setWorkManagerMBeanName(String mbeanName)
Deprecated.Identify a specific JBossWorkManagerMBean to talk to, through its JMX object name.The default MBean name is "jboss.jca:service=WorkManager".
getDefaultWorkManager
protected WorkManager getDefaultWorkManager()
Deprecated.Obtains the default JBoss JCA WorkManager through a JMX lookup for the JBossWorkManagerMBean.- Overrides:
getDefaultWorkManager
in classWorkManagerTaskExecutor
- See Also:
JBossWorkManagerUtils.getWorkManager()