You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Simo Hakanen <si...@axelhealth.com> on 2022/09/07 07:42:52 UTC

InOut-exchange over sjms fails if remote uses streamcaching and spools to disk

Hello list

We use camel to route messages over sjms (activemq) between processes,
where the remote end runs a route that does some processing and returns a
large json-response.
After experimenting with streamcaching on that remote end, we noticed that
if the stream is spooled to disk, the route fails with timeout.
The error is FileNotFoundException on the spooled file happening when the
JMS response is being created. From the logs it looks like the file is
deleted as part of the onComplete of the route before the response to
JMS-part starts.

Is this something uncommon?
Is there some other way to do this than InOut-exchanges?
I have a unit-test that shows the behavior if that helps.

-- 
Simo Hakanen