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, 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