Announcement Announcement Module
Collapse
No announcement yet.
HttpInvoker / Serialization question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpInvoker / Serialization question

    I apologize in advance if this question is a bit naive, but hopefully someone here can enlighten me.

    I'm using Spring's HttpInvoker (and associated classes) to utilize remoting for a client application.

    When a service interface method is called, are server-side modifications to parameters passed in transmitted back to the client, or only the return value?

    This question assumes all classes involved are Serializable.

    Example:

    Service interface method:
    Code:
    public <T> List<T> getList&#40;Class<T> classType, FilterSet filterSet, Sort sort&#41;;
    If the server-side implementation of this method modifies a member of the filterSet parameter, will the client see that change after the method call completes, or will it still have the initial value as before the service method is called?

    Kudos to the Spring team on an excellent product. You've given me back many hours of my life.

  • #2
    If the server-side implementation of this method modifies a member of the filterSet parameter, will the client see that change after the method call completes?
    No. All Spring's HTTP remoting options have pass-by-value sematics.

    Ollie

    Comment

    Working...
    X