apupier commented on code in PR #27031:
URL: https://github.com/apache/camel/pull/27031#discussion_r4142358537
##########
components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsProducer.java:
##########
@@ -292,6 +292,9 @@ protected boolean processInOut(final Exchange exchange,
final AsyncCallback call
in.setHeader(SjmsConstants.JMS_CORRELATION_ID,
GENERATED_CORRELATION_ID_PREFIX + getUuidGenerator().generateUuid());
}
+ // the correlation id the reply handler is registered under, which is
cancelled if the send fails
+ final String[] registeredCorrelationId = new String[1];
Review Comment:
Why an array of one element is used instead of a simple String?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]