There's a handful of administrative operations on the ActiveMQServerControl
MBean to get information about connections, sessions, consumers, producers,
etc., but none of these expose the JMS client ID.  If this is a requirement
for you please open a JIRA [1] which a description of exactly what you're
looking for.

It would be even better if you could send a pull request to the ActiveMQ
Artemis GitHub repository with the functionality you're looking for
(including a test to make sure it works).  I believe you'd want to change
the listSessionsAsJSON(String) and listAllSessionsAsJSON() methods on
org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl
to include the JMS client ID.  The JMS client ID is stored in the session's
meta data using
org.apache.activemq.artemis.api.core.client.ClientSession#JMS_SESSION_CLIENT_ID_PROPERTY
as the key.  Integration tests for these methods are in
org.apache.activemq.artemis.tests.integration.management.ActiveMQServerControlTest.


Justin

[1] https://issues.apache.org/jira/browse/ARTEMIS

On Sat, Mar 10, 2018 at 12:05 PM, Big Puritz <bigpur...@gmail.com> wrote:

> Hello,
>
> how can i get the value of the ClientID over JMX assigned to the connection
> / session / consumer / producer?
>
> Thanks
>

Reply via email to