You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/06/18 08:07:15 UTC
[camel] 01/02: CAMEL-19373: camel-spring-rabbitmq - Fix reply timeout (#10422)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c9c555cabcb6ec1d4e67aafdbf75002673d758bf
Author: Steven Dürrenmatt <46...@users.noreply.github.com>
AuthorDate: Sun Jun 18 10:02:42 2023 +0200
CAMEL-19373: camel-spring-rabbitmq - Fix reply timeout (#10422)
---
.../apache/camel/component/springrabbit/SpringRabbitMQEndpoint.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQEndpoint.java b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQEndpoint.java
index 25304e0d215..4c7cadf9611 100644
--- a/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQEndpoint.java
+++ b/components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/SpringRabbitMQEndpoint.java
@@ -550,9 +550,10 @@ public class SpringRabbitMQEndpoint extends DefaultEndpoint implements AsyncEndp
public AsyncRabbitTemplate createInOutTemplate() {
RabbitTemplate template = new RabbitTemplate(getConnectionFactory());
template.setRoutingKey(routingKey);
- template.setReplyTimeout(replyTimeout);
template.setUsePublisherConnection(usePublisherConnection);
- return new AsyncRabbitTemplate(template);
+ AsyncRabbitTemplate asyncTemplate = new AsyncRabbitTemplate(template);
+ asyncTemplate.setReceiveTimeout(replyTimeout);
+ return asyncTemplate;
}
public AbstractMessageListenerContainer createMessageListenerContainer() {