JBoss Community

Re: Specifying a different WorkManager for a custom resource ada

created by Daniel Marchese in IronJacamar - View the full discussion

Here is how I impemented it with JBoss 5.1.0 :

 

1- Deploy a custom-jboss-beans.xml file :

 

 

 

 

2- Use it in code (exception handling omitted) :

 

MBeanServer server = MBeanServerLocator.locateJBoss();WorkManager wm = (WorkManager) server.getAttribute(new ObjectName("custom:service=CustomWorkManager"), "Instance");wm.startWork(aWork);

 



Reply to this message by going to Community

Start a new discussion in IronJacamar at Community