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.

    evialle

      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"/>

                      </short-running-threads>

      </workmanager>

      <bootstrap-contexts>

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

      </bootstrap-contexts>

       

      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-adapters>

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

                          <archive>

                              prime-core-jms-ra.rar

                          </archive>

                          <bootstrap-context>PrimeBootstrapContext</bootstrap-context>

                      </resource-adapter>

                  </resource-adapters>

      </subsystem>

       

      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