Discussion:
[jboss-user] [IronJacamar] - Re: Specifying a different WorkManager for a custom resource ada
Bala Murugan
2012-02-19 15:30:04 UTC
Permalink
Bala Murugan [https://community.jboss.org/people/balaswd] created the discussion

"Re: Specifying a different WorkManager for a custom resource ada"

To view the discussion, visit: https://community.jboss.org/message/717782#717782

--------------------------------------------------------------
Please find the below link : http://java-explorer.blogspot.in/2012/02/workmanager-in-jboss-510.html http://java-explorer.blogspot.in/2012/02/workmanager-in-jboss-510.html .. It worked in jboss 5.1.0
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/717782#717782]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Daniel Marchese
2013-03-06 21:22:34 UTC
Permalink
Daniel Marchese [https://community.jboss.org/people/marched] created the discussion

"Re: Specifying a different WorkManager for a custom resource ada"

To view the discussion, visit: https://community.jboss.org/message/801161#801161

--------------------------------------------------------------
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
[https://community.jboss.org/message/801161#801161]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Loading...