Skip to content

Commit 78945f2

Browse files
committed
[apache#1913] Update DestinationView uri resolution (apache#1914)
Cherry-picked from 6.2.x: 2b8455b
1 parent bb68fe4 commit 78945f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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;
@@ -385,7 +386,7 @@ public String sendTextMessage(String body, String user, @Sensitive String passwo
385386
@Override
386387
public String sendTextMessage(Map<String, String> headers, String body, String userName, @Sensitive String password) throws Exception {
387388

388-
String brokerUrl = "vm://" + broker.getBrokerName();
389+
URI brokerUrl = broker.getVmConnectorURI();
389390
ActiveMQDestination dest = destination.getActiveMQDestination();
390391

391392
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory(brokerUrl);

0 commit comments

Comments
 (0)