Skip to content

Commit 7c3985c

Browse files
committed
Add getConnectionId() to ConnectionViewMBeanAdd.
1 parent 693b2e4 commit 7c3985c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ConnectionView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public String getClientId() {
105105
return connection.getConnectionId();
106106
}
107107

108+
@Override
108109
public String getConnectionId() {
109110
return connection.getConnectionId();
110111
}

activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ConnectionViewMBean.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ public interface ConnectionViewMBean extends Service {
6868
@MBeanInfo("client id for this connection")
6969
String getClientId();
7070

71+
/**
72+
* Returns the identifier for this connection
73+
*
74+
* @return the identifier for this connection
75+
*/
76+
@MBeanInfo("ID for this connection")
77+
String getConnectionId();
78+
7179
/**
7280
* Returns the number of messages to be dispatched to this connection
7381
* @return the number of messages pending dispatch

0 commit comments

Comments
 (0)