1 Reply Latest reply on Oct 27, 2014 6:43 AM by franfinance

    Call start/stop-delivery using management API (ControllerClient) on MDB EJB in a jar packaged in a EAR cannot find the ejb

    franfinance

      Hello,

       

      [using jboss EAP 6.3 on windows 7, jdk6]

       

      I have an ear with the following structure :

       

      project.ear
      +---ejb.jar
      +---app.war
      
      

      I want to call start/stop-delivery and read-attribute(delivery-active) on the ejb that are deployed.

       

      I confirmed that I can use the CLI to do that, e.g. :

       

      /deployment=project.ear/subdeployment=ejb.jar/subsystem=ejb3/message-driven-bean=foo:read-attribute(name=delivery-active)
      
      

       

      Now I want to do the same thing programmatically, from the war, using the client controller, so here is the command I build using ModelNode :

       

      {
          "address" :
          {
              "deployment" : "ONR-ear.ear",
              "subdeployment" : "ONR-ejb-4.0.0.3-SNAPSHOT.jar",
              "subsystem" : "ejb3",
              "message-driven-bean" : "OntMdb"
          },
          "operation" : "stop-delivery"
      }
      
      

      Unfortunately, I obtain the following :

       

      {
          "outcome" : "failed",
          "failure-description" : "JBAS014807: Ressource de gestion '[(\"deployment\" => \"ONR-ear.ear\")]' non trouvée",
          "rolled-back" : true
      }
      
      

      How I can address my ejb ?