Skip to content

Commit 95eeb90

Browse files
authored
[#1913] Update DestinationView uri resolution (#1914)
1 parent 52bef00 commit 95eeb90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.apache.activemq.broker.jmx;
1818

1919
import java.io.IOException;
20+
import java.net.URI;
2021
import java.net.URISyntaxException;
2122
import java.util.ArrayList;
2223
import java.util.Collections;
@@ -394,7 +395,7 @@ public String sendTextMessage(String body, String user, @Sensitive String passwo
394395
@Override
395396
public String sendTextMessage(Map<String, String> headers, String body, String userName, @Sensitive String password) throws Exception {
396397

397-
String brokerUrl = "vm://" + broker.getBrokerName();
398+
URI brokerUrl = broker.getVmConnectorURI();
398399
ActiveMQDestination dest = destination.getActiveMQDestination();
399400

400401
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory(brokerUrl);

0 commit comments

Comments
 (0)