According to Spring reference documentation, method annotated with @JmsListener
and have a non-void
return type will have the result of the invocation encapsulated in a javax.jms.Message
and sent either in the destination specified in the JMSReplyTo
header of the original message or in the default destination configured on the listener.
If no destination is found then an InvalidDestinationException
will be thrown.
Is there a way to disable this behavior of automatic reply ?
EDIT
I'm using an @Around
Advice to log the result of the execution that's why i need to have a return type on my listener.