2 Replies Latest reply on Nov 17, 2015 11:41 AM by Shibani Corcoran

    JBoss EAP 6.3 - subsystem jca - default-workmanager

    Shibani Corcoran Newbie

      We are migrating from JBoss EAP 5.2 to JBoss EAP 6.3.  We need to get an instance of the default workmanager. In 5.2 we got a workmanager via an MBeanServer.:


      MBeanServer server = MBeanServerLocator.locateJBoss();

      return (WorkManager)server.getAttribute(new ObjectName("jboss.jca:service=WorkManager"), "Instance");


      I notice that there is an IronJacamar module and am wondering if we utilize that. I was told by a colleague that we need to create a resource adapter, but I think we should be able to get the default workmanager named in the jca subsystem with a few lines of Java code. I've tried a few things but to no avail. Is there a simple way to get the default workmanager object in JBoss EAP 6.3?






        • 1. Re: JBoss EAP 6.3 - subsystem jca - default-workmanager
          Panagiotis Chavariotis Novice

          I am afraid in JBoss EAP 6.x the WorkManager is intended to be used only with a JCA resource adapter. As a result, the resource adapter itself can retrieve the WorkManager object from BootstrapContext#getWorkManager().

          You are right about the IronJacamar tool. Actually this tool can help you get started writing a JCA resource adapter.

          To be specific, IronJacamar provides a WorkManager resource adapter in its test suite. You can check the following URL for more info: http://www.ironjacamar.org/doc/api/spec/1.7/javax/resource/spi/work/WorkManager.html

          • 2. Re: JBoss EAP 6.3 - subsystem jca - default-workmanager
            Shibani Corcoran Newbie

            Hi Panagiotis,


            Thanks for your reply. It really helped. I found the teat suite you mentioned. I was wondering if you have also used the IronJacamar Eclipse plugin?  I went ahead and downloaded the IronJacamar implementation, and tried to install the IronJacamar Eclipse plugin. I followed the instructions by copying the ironjacamar-eclipse.jar to the %ECLIPSE_HOME%\plugins directory. but when I open Eclipse and go to the Window/Preferences page and click on IronJacamar, the following error occurs:

            Unable to create the selected preference page.
            org/jboss/jca/eclipse/preferences/IronJacamarPreferencePage : Unsupported major.minor version 51.0.

            My Java version is 1.7.0_55 and the compiler compliance level is set to 1.7. I would think this should be sufficient for the IronJacamar plugin.