Hello!

I am using pollEnrich with sql component and dynamic uris. When two or more
messages are polling on the same sql endpoint, only one will get results
from the query.
The rest messages polling the same endpoint will timeout. I have implemented
a unit test on a Camel test class that presents this "possible" issue. 

https://github.com/sermojohn/camel/commit/fc287b0127e270ee7c9af811cb5cd6d999f3b2a4

I have also implemented a unit test with a workaround that makes it run
successfully. By adding an sql comment to the sql endpoint containing the
exchangeId which makes the endpoint unique.
However, I am not sure if this might cause any side-effects. So, I am just
presenting it here as a hint for the possible fix.

Regards,
sermetzi



--
View this message in context: 
http://camel.465427.n5.nabble.com/PollEnrich-on-SQL-endpoint-fails-for-messages-polling-the-same-endpoint-tp5784328.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to