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 <[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 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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to