Add TimeoutException to JmsInvokerClientInterceptor [SPR-12731] #17328
JmsInvokerClientInterceptor currently allows a
That leaves a NullPointerException coming from MessageConverter as the only signal for available for when a timeout happens .
Right now, It is possible to work around this issue by checking for null in a custom MessageConverter, but current MessageConverter implementations are naturally not expecting a null Message. (Except MessagingMessageConverter, though)
I would like to propose a change similar to the following to JmsInvokerClientInterceptor in order to signal a timeout situation to client code:
Referenced from: commits 8fcbdae
Stéphane Nicoll commented
Good catch, thanks!
I have introduced an additional hook point
It is also possible to return a fallback
This should be available in the next couple of hours in a