This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 7ad1405f4b8 fix getInOnlyTemplate in SpringRabbitMQProducer.java
(#14823)
7ad1405f4b8 is described below
commit 7ad1405f4b83931b39c7641b343d40bbc83a9543
Author: Kevin Hostelley <[email protected]>
AuthorDate: Tue Jul 16 05:37:45 2024 -0400
fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823)
getInOnlyTemplate is checking if inOutTemplate is null to determine whether
or not it should initialize inOnlyTemplate. It should check inOnlyTemplate.
This change fixes that.
---
.../org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
index 59f05bfa21e..373073e770c 100644
---
a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
+++
b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQProducer.java
@@ -54,7 +54,7 @@ public class SpringRabbitMQProducer extends
DefaultAsyncProducer {
}
public RabbitTemplate getInOnlyTemplate() {
- if (inOutTemplate == null) {
+ if (inOnlyTemplate == null) {
inOnlyTemplate = getEndpoint().createInOnlyTemplate();
}
return inOnlyTemplate;