Warning message

A translation for your language preference does not exist.

How to invoke start-delivery or stop-delivery using management API on MDB in EAP 6 ?

Solution 확인됨 - 업데이트됨 - 한국어 번역 요청

문제

  • How to call start/stop-delivery using management API (ControllerClient) on MDB in JBoss EAP 6? Also how to call read-attribute(delivery-active) on the ejb that are deployed ?
  • How to achieve the same goal as the following CLI command with Management API:
 $ /deployment=Test-ear.ear/subdeployment=Test-ejb.jar/subsystem=ejb3/message-driven-bean=TestMdb:read-attribute(name=delivery-active)  
  • While doing same thing as above programmatically, from the war, using the client controller, so here is the command I build using ModelNode :
    {  
        "address" :   
        {  
            "deployment" : "Test-ear.ear",   
            "subdeployment" : "Test-ejb.jar",   
            "subsystem" : "ejb3",   
            "message-driven-bean" : "TestMdb"  
        },   
        "operation" : "stop-delivery"  
    }  
  • Unfortunately, getting the following ERROR:
    ~~~
    {
    "outcome" : "failed",
    "failure-description" : "JBAS014807: Resource Management [(\ "deployment \" => \ "Test-ear.ear \")] 'not found",
    "rolled-back" : true
    }
    ~~~

환경

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content