This is an automated email from the ASF dual-hosted git repository.
mattrpav pushed a commit to branch activemq-6.2.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-6.2.x by this push:
new 2b8455b34f [#1913] Update DestinationView uri resolution (#1914)
2b8455b34f is described below
commit 2b8455b34ff3f57aa69efb33dcec0865465cc2e1
Author: Matt Pavlovich <[email protected]>
AuthorDate: Tue Apr 14 12:16:24 2026 -0500
[#1913] Update DestinationView uri resolution (#1914)
(cherry picked from commit 95eeb906d74ff02665dd8a1b3f084e824a10648c)
---
.../src/main/java/org/apache/activemq/broker/jmx/DestinationView.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
index 2386d4ba10..ba051fa187 100644
---
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
+++
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
@@ -17,6 +17,7 @@
package org.apache.activemq.broker.jmx;
import java.io.IOException;
+import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
@@ -389,7 +390,7 @@ public class DestinationView implements
DestinationViewMBean {
@Override
public String sendTextMessage(Map<String, String> headers, String body,
String userName, @Sensitive String password) throws Exception {
- String brokerUrl = "vm://" + broker.getBrokerName();
+ URI brokerUrl = broker.getVmConnectorURI();
ActiveMQDestination dest = destination.getActiveMQDestination();
ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory(brokerUrl);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact