You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ma...@apache.org on 2026/04/14 23:34:54 UTC
(activemq) branch activemq-5.19.x updated: [#1913] Update DestinationView uri resolution (#1914)
This is an automated email from the ASF dual-hosted git repository.
mattrpav pushed a commit to branch activemq-5.19.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.19.x by this push:
new 843c8ab0ce [#1913] Update DestinationView uri resolution (#1914)
843c8ab0ce is described below
commit 843c8ab0ce58fbef2b338bcfec446aa4022a40c4
Author: Matt Pavlovich <ma...@apache.org>
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 e3e0c45c62..7fc2fead9d 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;
@@ -395,7 +396,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: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact