1 Reply Latest reply on Oct 9, 2018 10:02 AM by simkam

    Add adapter in EJB

    Alain GREGOIRE Newbie

      Hello,

       

      I need to make something like this in standalone.xml:

       

      <subsystem xmlns="urn:jboss:domain:ejb3:1.4">

       

      . . . . .

       

          <mdb>

              <resource-adapter-ref resource-adapter-name="activemq-rar.rar"/>

              <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>

          </mdb>

       

      </subsystem>

       

      I tried to translate this section in CLI with :

       

      /subsystem=ejb3/mdb=resource-adapter-ref:add(resource-adapter-name=activemq-rar.rar)

      /subsystem=ejb3/mdb=bean-instance-pool-ref:add(pool-name=mdb-strict-max-pool)

       

      But I didn't succeed :

       

      Launching JBoss CLI script [/opt/jboss/wildfly/customization/6_jms.cli]

      org.jboss.as.cli.CommandFormatException: Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [

          ("subsystem" => "ejb3"),

          ("mdb" => "resource-adapter-ref")

      ]": Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [

          ("subsystem" => "ejb3"),

          ("mdb" => "resource-adapter-ref")

      ]"

       

      Regards,

      GREGOIRE Alain.