You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Big Puritz <bi...@gmail.com> on 2018/03/10 18:05:50 UTC

[artemis] Getting ClientID over JMX

Hello,

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

Thanks

Re: [artemis] Getting ClientID over JMX

Posted by Clebert Suconic <cl...@gmail.com>.
do you know how to make a pull request?

We can merge it really quickly with Pull Requests.

On Mon, Mar 26, 2018 at 4:58 PM, Big Puritz <bi...@gmail.com> wrote:
> JIRA Issue with patch created: ARTEMIS-1769
>
>
> On Sat, Mar 10, 2018 at 10:41 PM, Justin Bertram <jb...@apache.org>
> wrote:
>
>> 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 <bi...@gmail.com> wrote:
>>
>> > Hello,
>> >
>> > how can i get the value of the ClientID over JMX assigned to the
>> connection
>> > / session / consumer / producer?
>> >
>> > Thanks
>> >
>>



-- 
Clebert Suconic

Re: [artemis] Getting ClientID over JMX

Posted by Big Puritz <bi...@gmail.com>.
JIRA Issue with patch created: ARTEMIS-1769


On Sat, Mar 10, 2018 at 10:41 PM, Justin Bertram <jb...@apache.org>
wrote:

> 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 <bi...@gmail.com> wrote:
>
> > Hello,
> >
> > how can i get the value of the ClientID over JMX assigned to the
> connection
> > / session / consumer / producer?
> >
> > Thanks
> >
>

Re: [artemis] Getting ClientID over JMX

Posted by Justin Bertram <jb...@apache.org>.
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 <bi...@gmail.com> wrote:

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