Results 1 to 2 of 2

Thread: HttpInvoker / Serialization question

  1. #1
    Join Date
    Mar 2005
    Location
    WI, USA
    Posts
    6

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    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

Similar Threads

  1. HttpInvoker and streaming
    By adepue in forum Remoting
    Replies: 7
    Last Post: Jun 7th, 2010, 10:39 PM
  2. Stateful HttpInvoker
    By scottr in forum Remoting
    Replies: 4
    Last Post: Dec 29th, 2009, 06:13 PM
  3. Forgot password (e.g. secret question) using Acegi
    By lowerymb77 in forum Security
    Replies: 1
    Last Post: Oct 16th, 2005, 10:46 PM
  4. Replies: 1
    Last Post: May 15th, 2005, 12:51 AM
  5. Replies: 6
    Last Post: Oct 8th, 2004, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •