using different classes on the client and server side

From: John Didion <John.Didion@xxx.com>
Date: Fri Apr 08 2005 - 13:05:07 PDT

Instead of the normal model of using the same service interface and
objects on both the client and server, we're generating a client stub
[1]. Will this just work, or do we have to write a custom Serializer and
Deserializer?

Thanks in advance.

[1] an example of what we're doing:

Server
----------
package server;

public interface FooService {
  Bar getBar();
}

package server;

public class FooServiceImpl {
  Bar getBar() {...}
}

package server;

public class Bar {
  private String baz;
  public String getBaz() {...}
  public void setBaz(String s) {...}
}

Client
----------
package client;

interface FooClient {
  BarClientObject getBar();
}

package client;

class BarClientObject {
  private String baz;
  public String getBaz() {...}
  public void setBaz(String s) {...}
}

Usage
----------

BarClientObject obj =
    ((FooClient) new HessianProxyFactory().
        create(FooClient.class, url)).
        getBar();
Received on Fri 08 Apr 2005 13:05:07 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT