1 Reply Latest reply on Feb 25, 2016 3:51 PM by jamat

    Wildfly 10: WFLYCTL0216: Management resource '[(\"subsystem\" => \"ejb3\")]' not found

    jamat Newbie

      In my standalone.xml I define a pool instance:

       

                  <pools>

                      <bean-instance-pools>

                          <strict-max-pool name="MyPool" max-pool-size="100" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="SECONDS"/>

                      </bean-instance-pools>

                  </pools>

       

      Now when my application starts up I try to read the 'maxPoolSize' attribute from JMX (I am using  "jboss.as:subsystem=ejb3,strict-max-bean-instance-pool=MyPool" for the name).

      When I do that I got the error in the title.

      If I do 'wait' some time before querying JMX to let enough time for the server to start then it works.


      How can I deal with that? The 'wait' is not every nice. Is there some dependency that I can add? Or some 'notification' that will tell me when the 'ejb3' subsystem is ready?