activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michaelandrepearce <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #2376: [ARTEMIS-2130]Web console display blank...
Date Wed, 24 Oct 2018 00:29:19 GMT
Github user michaelandrepearce commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2376#discussion_r227609451
  
    --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/ConnectionView.java
---
    @@ -51,10 +51,14 @@ public JsonObjectBuilder toJson(RemotingConnection connection) {
     
           List<ServerSession> sessions = server.getSessions(connection.getID().toString());
           Set<String> users = new HashSet<>();
    +      String clientID = null;
     
           for (ServerSession session : sessions) {
              String username = session.getUsername() == null ? "" : session.getUsername();
              users.add(username);
    +         if (clientID == null) {
    +            clientID = session.getMetaData("jms-client-id") == null ? connection.getClientID()
: session.getMetaData("jms-client-id");
    --- End diff --
    
    should avoid jms specifics such as this.
    



---

Mime
View raw message