Closed asm0dey closed 7 years ago
I presume you are talking about a @RabbitListener
that returns a result and have it handle (propagate) exceptions back to the client.
Spring Remoting over AMQP supports exception propagation but I agree it would be convenient if @RabbitListener
s could do the same.
Please note that we track new feature requests via JIRA, not GitHub issues; I have opened a JIRA issue for this.
@artembilan Thank you very much! It was blazingly fast!
As of now Spring MVC supports concept of GlobalExceptionHandler, which allows to create custom handler for any exception (and Exception class itself). In opposite spring AMQP project doesn't allow to return setup any exception handler and I must setup exception handling globally.
Typically there is 3 types of situations which involve exception handling:
reply_to
header or@SendTo
annotation).Spring AMQP helps us to solve 1 and 3, but there is no common way to solve 2. I propose to implement one of following:
ExceptionHandler
from Spring MVC.throws
keyword and return thrown exceptions to senderIt would be very cool if you could implement this!