[ 
https://issues.apache.org/jira/browse/CAMEL-17106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430446#comment-17430446
 ] 

Otavio Rodolfo Piske edited comment on CAMEL-17106 at 10/19/21, 9:50 AM:
-------------------------------------------------------------------------

This happens because there is a mismatch between the component's configuration 
object and the endpoint's configuration object (see attachment 
camel-17106-1.png).

 

When processing the InOut exchange, the endpoint's timeout configuration is 
taking precedence over the component configuration [1].

 

1. 
[https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java#L193]


was (Author: orpiske):
This happens because there is a mismatch between the component's configuration 
object and the endpoint's configuration object.

 

When processing the InOut exchange, the endpoint's timeout configuration is 
taking precedence over the component configuration [1].

 

1. 
https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java#L193

> JMS requestTimeout seems to be ignored
> --------------------------------------
>
>                 Key: CAMEL-17106
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17106
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 3.12.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Major
>         Attachments: camel-17106-1.png
>
>
> I was looking at the CI and code trying to understand why this test  [1] runs 
> so much slower than the others (~20 secs) and I noticed something strange. 
>  
> Despite being configured to use 1 sec as the timeout [2], the value seems to 
> be ignored and the request nonetheless times out only after 20 secs. 
>  
> Modifying the template's requestBody call to override the timeout using the 
> CamelJmsRequestTimeout header seems to work-around the issue (and apparently 
> fixes the test slowness as well). 
>  
>  # 
> [https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L407]
>  # 
> [https://github.com/apache/camel/blob/8cd6b34e8bc753520f3153a354beb9765e3f2741/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java#L409]
>  #



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to