Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4055

Re-creating a resource adapter fails with message: "JBAS014749: Operation handler failed: Service jboss.resourceadapters.ra.MyAdapter is already registered"

    XMLWordPrintable

Details

    Description

      Re-creating a resource adapter using (:add, :remove, :add) fails as shown below.

      [standalone@localhost:9999 /] /subsystem=resource-adapters/resource-adapter=MyAdapter:add(archive=my-adapter.ear)
      {"outcome" => "success"}
      [standalone@localhost:9999 /] /subsystem=resource-adapters/resource-adapter=MyAdapter:remove  
      {"outcome" => "success"}
      [standalone@localhost:9999 /] /subsystem=resource-adapters/resource-adapter=MyAdapter:add(archive=my-adapter.ear)
      {
          "outcome" => "failed",
          "failure-description" => "JBAS014749: Operation handler failed: Service jboss.resourceadapters.ra.MyAdapter is already registered",
          "rolled-back" => true
      }
      

      After a server restart the resource adapter can be added reusing the previously removed name.

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            r.reimann_jira Robert Reimann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: