How to monitor statistics of a queue created programmatically

Solution Unverified - Updated -

Issue

  • Cannot see the list of queues through the CLI command when the queue is created programmatically

    Queue is created as below

QueueConnectionFactory qcf = (QueueConnectionFactory)initialContext.lookup(connectionFactoryName);
QueueConnection qconnection = qcf.createQueueConnection(user, password);
QueueSession qsession = qconnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
qconnection.start();
Queue managementQueue = HornetQJMSClient.createQueue("hornetq.management");
QueueRequestor requestor = new QueueRequestor(qsession, managementQueue);
Message m = qsession.createMessage();
JMSManagementHelper.putOperationInvocation(m, "jms.server", "createTopic", "myTopic", "myTopicJNDI");
Message reply1 = requestor.request(m);

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.