Re: Real Basic Stuff
From: David Waldock (david_at_socialnetworks.co.uk)
Date: 04/16/04
- Next message: Roy Chastain: "Re: Confusion: Server side creation of CAO's"
- Previous message: Sunny: "Re: Trying to remote a com object"
- In reply to: Sunny: "Re: Real Basic Stuff"
- Next in thread: Sunny: "Re: Real Basic Stuff"
- Reply: Sunny: "Re: Real Basic Stuff"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 17:58:45 +0100
> in remoting you have 2 types of remoted objects -
> MarshalByReferenceObject and marshaled by value.
> The first passes only a reference (proxy) to the server object.
Hmmm. Would it be better to implement a methods MBR object "Customers"
(with GetCustomer(), UpdateCustomer() as exposed methods etc...) which
returns and consumes an MBV object "Customer" (with all the
customer-specific properties and methods exposed). The MBV object could
then be used on the client.
> All other classes, which are not MBR, and are marked Serializable, or
> implement ISerializable interface are passed by value, I.e. a copy of
> the class is send to client.
>
> If you are going to use MBVs objects only, maybe WebService is a better
> solution.
> The true power of remoting is in MBRs, where the work is initiated by
> the client, but done on the server.
Thing is, the MBV object created by the WebService is a very shallow
instance of the object "CustomerProxy" (ie: simply a collection of fields).
Is there a simple way of taking a proxy object and deserializing it into an
instance of the original object (the Base class library will be included in
the Winforms client) which can be manipulated by the client software and
then passed back as an argument in another WS call? If there is, WS is my
architecture of choice; if not Remoting is the way forward.
David
- Next message: Roy Chastain: "Re: Confusion: Server side creation of CAO's"
- Previous message: Sunny: "Re: Trying to remote a com object"
- In reply to: Sunny: "Re: Real Basic Stuff"
- Next in thread: Sunny: "Re: Real Basic Stuff"
- Reply: Sunny: "Re: Real Basic Stuff"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|