You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "DenisIstomin (via GitHub)" <gi...@apache.org> on 2023/08/23 10:10:13 UTC

[GitHub] [camel] DenisIstomin commented on a diff in pull request #11178: CAMEL-19777: Fix usage of FQQN with toD

DenisIstomin commented on code in PR #11178:
URL: https://github.com/apache/camel/pull/11178#discussion_r1302797596


##########
components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsSendDynamicAware.java:
##########
@@ -109,8 +109,15 @@ private String parseDestinationName(String uri) {
         if (pos != -1) {
             uri = uri.substring(0, pos);
         }
-        // destination name is after last colon
-        pos = uri.lastIndexOf(':');
+
+        // destination name is after last colon (but not after double colon)
+        int posDoubleCol = uri.indexOf("::");
+        if (posDoubleCol != -1) {
+            pos = uri.substring(0, posDoubleCol).lastIndexOf(':');
+        } else {
+            pos = uri.lastIndexOf(':');
+        }
+

Review Comment:
   Thanks, made use of `StringHelper`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org