You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for null return values in gateway/service-activator methods [INT-2222] #6203
With the addition of the payload-expression configuration on methods (in v2.1) that do not have parameters it is now possible to have "getter" type functionality actually send a message to request some remote artifact even though there is no actual payload to send.
It would be very helpful to provide a similar configuration on gateway/service methods that return null as a valid returnable object. The current behavior is if the return value is null, no reply message is actually sent from the remote side.
We are also using custom code in our application to handle null responses. Interested in Gary's last comment on the Forum.
we are considering an attribute on the <service-activator /> (perhaps an expression), that will be invoked on a null return (rather than taking the default action of filtering).
Activity
spring-operator commentedon Feb 23, 2012
David Victor commented
We are also using custom code in our application to handle null responses. Interested in Gary's last comment on the Forum.
spring-operator commentedon Mar 22, 2012
Gary Russell commented
An interesting work-around using AspectJ has just been posted on #5004
It should be possible to use the same technique on any class - for a simple <service-activator/> one wouldn't need AspectJ; just Spring AOP.
spring-operator commentedon Dec 1, 2022
Artem Bilan commented
Duplicated of #5004