Announcement Announcement Module
No announcement yet.
Object update with remoting Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Object update with remoting

    I'm using the HttpInvokerServiceExporter to export some of my service facades. The issue that I have come across is when I send an object over from the client to the server, the server performs some business logic which might update the passed in object, but the service does not return the passed in object. How is the client suppose to see the modifications?

    -- Client side:
    SomeObject obj = new SomeObject();
    -- Server Side:
    updateObject(SomeObject obj) {
      obj.setVersion(obj.getVersion() + 1);
      return 1;

    Now the server has updated the passed in object but the client will never see the changes. So what is the work-around for this issue?

    Does the object that gets updated always need to be returned or is there another way for the client to see the changes made?

    Thanks for the help..

  • #2
    Either retrieve the object after completion of the business logic or return the updated object from your method. Else the client won´t see the updated object.