Can a WorkManager be looked up in JNDI and used directly?
Issue
- Can the WorkManager be directly used in the application?
- Is there something similar to
WebLogic CommonJ FrameworkorWebLogic Work Manager APIinJBoss EAP? - Can a bean create the WorkManager as follows :
//get MBean Server
MBeanServer server = MBeanServerLocator.locateJBoss();
//get WorkManager
ObjectName objectName = new ObjectName("jboss.jca:service=WorkManager");
JBossWorkManagerMBean jwm = (JBossWorkManagerMBean)
MBeanServerInvocationHandler.newProxyInstance(server,objectName,JBossWorkManagerMBean.class,false);
WorkManager wm = jwm.getInstance();
//schedule Work for Execution
wm.scheduleWork(new SomeWork());
- What the default-workmanager does in JBoss EAP ?
- Is the JCA work manager related to the resource-adapter subsystem and if yes then how ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
