How to invoke start-delivery or stop-delivery using management API on MDB in EAP 6 ?
Issue
- How to call
start/stop-deliveryusing 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
}
~~~
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
