Re: Real Basic Stuff
From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/16/04
- Next message: Sunny: "Re: Pass FileStream over remoting channel"
- Previous message: Sunny: "Re: Problem detecting server / connection failure"
- In reply to: David Waldock: "Real Basic Stuff"
- Next in thread: David Waldock: "Re: Real Basic Stuff"
- Reply: David Waldock: "Re: Real Basic Stuff"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 10:03:11 -0500
Hi David,
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.
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.
Hope that helps
Sunny
In article <eGg9rM7IEHA.3308@tk2msftngp13.phx.gbl>,
david@socialnetworks.co.uk says...
> Hi Guys
>
> Are there any good .net remoting tutorials on the net at all?
>
> The application is a web-based business system which allows customers to use
> a website, but for which higher-level access will be required (the website
> will only implement customer-oriented methods) for which a winforms
> application will be used. I would like the winforms client to be able to
> call a method (say, GetCustomer(CustomerRef)) and get a Customer object
> returned.
>
> All of the intros to remoting tell me how to retrieve a relatively simple
> object, which exposes a simple method (for example, a function returning
> "Hello World!"). For example, if I called GetCustomer on the remote object,
> would the return Customer object reside on the server or client? Ideally,
> I'd like it on the client, which the server not being called again until
> UpdateCustomer() is called.
>
> If this isn't possible using remoting, is there a way to use web services to
> expose an object which can be deserialized into the original object, rather
> than a shallow proxy class?
>
> David
>
>
>
- Next message: Sunny: "Re: Pass FileStream over remoting channel"
- Previous message: Sunny: "Re: Problem detecting server / connection failure"
- In reply to: David Waldock: "Real Basic Stuff"
- Next in thread: David Waldock: "Re: Real Basic Stuff"
- Reply: David Waldock: "Re: Real Basic Stuff"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|