Github user jbertram commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1231#discussion_r113715125
--- Diff:
artemis-cli/src/main/java/org/apache/activemq/artemis/util/ServerUtil.java ---
@@ -121,18 +121,6 @@ public static int getServer(Connection connection) {
return Integer.valueOf(port) - 61616;
}
- public static Connection getServerConnection(int server, Connection...
connections) {
- for (Connection connection : connections) {
- ClientSession session = ((ActiveMQConnection)
connection).getInitialSession();
- TransportConfiguration transportConfiguration =
session.getSessionFactory().getConnectorConfiguration();
- String port = (String)
transportConfiguration.getParams().get("port");
- if (Integer.valueOf(port) == server + 61616) {
- return connection;
- }
- }
- return null;
- }
-
--- End diff --
This method is used in the "clustered-static-oneway" example.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---