0 Replies Latest reply on Mar 4, 2017 6:29 AM by Suresh Selvam

    WorkManager in Jboss EAP 7

    Suresh Selvam Newbie

      Hi All ,

       

      I have added the the custom Work Manager name called com/xxx/workmanager in JCA subsystem of Jboss EAP 7 and below are the my configurations to get the work manager in my application

       

      jboss-web.xml

       

      <resource-ref>

             <res-ref-name>jboss.jca:service=com/xxx/workmanager</res-ref-name>

             <res-type>javax.resource.spi.work.WorkManager</res-type>

             <jndi-name>java:/com/xxx/workmanager</jndi-name>

        </resource-ref>

       

      web.xml

       

      <resource-ref>

        <res-ref-name>com/xxx/workmanager</res-ref-name>

        <res-type>javax.resource.spi.work.WorkManager</res-type>

        <res-auth>Container</res-auth>

        <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

       

      app-context.xml

       

      <bean id="taskExecutor" class="org.springframework.scheduling.jca.work.WorkManagerTaskExecutor">

        <property name="workManagerName" value="com/xxx/workmanagerr" />

        <property name="resourceRef" value="true" />

        </bean>

       

      When I tried to deploy the application i got the below resources missing exception and Please let me know how can i get the work manager in my application.

       

      Error:

      xxx-SNAPSHOT\".env.\"jboss.jca:service=com\".xxx.workmanager is missing [jboss.naming.context.java.com.xxx.workmanager]",

      "jboss.naming.context.java.module.\"xxx-SNAPSHOT\".\"xxx-SNAPSHOT\".env.com.xxx.workmanager is missing [jboss.naming.context.java.jboss.resources.com.xxx.workmanager]"

      [] ]}

       

      Helps much appreciated

       

      Thanks much