You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/07/16 09:57:19 UTC
(camel) branch camel-4.4.x updated: fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823) (#14847)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push:
new 56a064dd31e fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823) (#14847)
56a064dd31e is described below
commit 56a064dd31e7c2aff0e1e358ddf85fef25756e7c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 16 11:57:13 2024 +0200
fix getInOnlyTemplate in SpringRabbitMQProducer.java (#14823) (#14847)
getInOnlyTemplate is checking if inOutTemplate is null to determine whether or not it should initialize inOnlyTemplate. It should check inOnlyTemplate. This change fixes that.
Co-authored-by: Kevin Hostelley <87...@users.noreply.github.com>
---
.../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 73712e16f8c..ec273f2bc1b 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
@@ -52,7 +52,7 @@ public class SpringRabbitMQProducer extends DefaultAsyncProducer {
}
public RabbitTemplate getInOnlyTemplate() {
- if (inOutTemplate == null) {
+ if (inOnlyTemplate == null) {
inOnlyTemplate = getEndpoint().createInOnlyTemplate();
}
return inOnlyTemplate;