Skip to content

Add support for null return values in gateway/service-activator methods [INT-2222] #6203

Closed

Description

@spring-operator

Rob Gratz opened INT-2222 and commented

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.


Affects: 2.1 M2

Reference URL: http://forum.springsource.org/showthread.php?87697-Some-questions-about-Exception-Handling&p=385830#post385830

Issue Links:

2 votes, 4 watchers

Activity

  1. spring-operator commented on Feb 23, 2012

    @spring-operator
    ContributorAuthor

    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.

    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).

  2. spring-operator commented on Mar 22, 2012

    @spring-operator
    ContributorAuthor

    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.

  3. spring-operator commented on Dec 1, 2022

    @spring-operator
    ContributorAuthor

    Artem Bilan commented

    Duplicated of #5004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: duplicatetype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions