The MBean object name for the queue is:
/org.apache.activemq.artemis:broker="artemis-server",component=addresses,address="Step-Event"/.
After recreating the object name with:
/ObjectName objName =
ObjectNameBuilder.create(ActiveMQDefaultConfiguration.getDefaultJmxDomain(),
"artemis-serve").get
The call to
org.apache.activemq.artemis.api.core.management.ObjectNameBuilder#getQueueObjectName
is creating this MBean object name:
org.apache.activemq.artemis:broker="localhost",component=
addresses,address="Step-Event",subcomponent=queues,routing-
type="anycast",queue="Step-Event"
Can you us
Thanks Justin. I don't know how I missed that example earlier. It is very
clear now after going through it. having said that, Now if I run the code
below, I get /InstanceNotFoundException/ during serverControl.createDivert
method invocation.
/public class App {
private static final String
> I have spend considering amount of time looking at Artemis
documentation...
The documentation you mentioned refers to an example "which shows how to
use a remote connection to JMX and MBean proxies to manage Apache ActiveMQ
Artemis." Have you taken a look at this example? It's shipped with the
I am trying to do a non-exclusive divert of messages dynamically on my remote
Artemis server using core management api. I have spend considering amount of
time looking at Artemis documentation [1] and test classes found at [2] but
still I can not figure out how to do it. Neither the documentation