I'm customizing the embedded ActiveMQ Artemis server using the code below.
@Override
public void customize(org.apache.activemq.artemis.core.config.Configuration configuration)
It works fine, and I figured out I can access later on like this ->
Queue queue = embeddedActiveMQ.getActiveMQServer().locateQueue("queue");
QueueControl queueControl = new QueueControlImpl(queue,
queue.getAddress().toString(),embeddedActiveMQ.getActiveMQServer(),embeddedActiveMQ.getActiveMQServer().getStorageManager() ,embeddedActiveMQ.getActiveMQServer().getSecurityStore(),embeddedActiveMQ.getActiveMQServer().getAddressSettingsRepository());
queueControl.browse();
Is there a problem doing like this?
I'm trying to write a custom endpoint to handle the queue management instead of using the classical package with Jolokia.