activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-587) Expose connection and subscription information via JMX
Date Tue, 26 Jul 2016 02:42:20 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393094#comment-15393094
] 

ASF GitHub Bot commented on ARTEMIS-587:
----------------------------------------

Github user johnament commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/662#discussion_r72180014
  
    --- Diff: artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java
---
    @@ -796,20 +796,12 @@ public String listSessionsAsJSON(final String connectionID) throws
Exception {
     
           clearIO();
     
    -      JsonArrayBuilder array = Json.createArrayBuilder();
           try {
    -         List<ServerSession> sessions = server.getActiveMQServer().getSessions(connectionID);
    -         for (ServerSession sess : sessions) {
    -            JsonObjectBuilder obj = Json.createObjectBuilder()
    -                  .add("sessionID", sess.getName())
    -                  .add("creationTime", sess.getCreationTime());
    -            array.add(obj);
    -         }
    +         return server.listSessionsAsJSON(connectionID);
           }
           finally {
              blockOnIO();
           }
    -      return array.toString();
    --- End diff --
    
    Shoot, just noticed this error.  As  soon as this PR is in I'll fix the other place.


> Expose connection and subscription information via JMX
> ------------------------------------------------------
>
>                 Key: ARTEMIS-587
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-587
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Lionel Cons
>            Assignee: Justin Bertram
>
> ActiveMQ 5.x does expose connection information via JMX.
> This allows to find out who is connected to a broker but also who consumes from which
queue or topic. One can also delete connections, for instance to kill a stuck consumer.
> I did not find the equivalent functionality in Artemis.
> Could Artemis be improved to expose in JMX the list of connections (with remote address,
port number, credential used to authenticate, list of subscriptions...) as well as (at least)
an operation to force the end of a given connection?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message