3 Replies Latest reply on Nov 20, 2013 6:11 AM by Jesper Pedersen

    JBoss 7: ResourceAdapter started two times when using a custom work manager.

    vialle eric Newbie

      in subsystem <subsystem xmlns="urn:jboss:domain:jca:1.1"> I declared a custom work manager with a BootstrapContext:

      <workmanager name="PrimeWorkManager">

                      <short-running-threads allow-core-timeout="false">

                          <queue-length count="10"/>

                          <max-threads count="50"/>




                      <bootstrap-context name="PrimeBootstrapContext" workmanager="PrimeWorkManager"/>



      then in subsystem <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1"> I declared a RA with my BootstrapContext

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">


                      <resource-adapter id="prime-core-jms-ra.rar">









      when JBoss start, the method start() of my RA is called two times:

      first time with the default work manager

      second time with my custom work manager


      How to prevent the first instantiation of the RA ? I want to use it only with my PrimeBootstrapContext