Re: Real Basic Stuff

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Sunny (sunnyask_at_icebergwireless.com)
Date: 04/16/04


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
>
>
>



Relevant Pages

  • Re: Events in .Net Remoting
    ... I am writing with respect to the Events in .Net Remoting that I had ... another channel for the callbacks..both on client side. ... Then I force a method on the server end (through a GUI control on the ... >> the regular client side requests still work fine. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: passing structs (setializable) object in web service
    ... The philosophy of webservices is different than that of remoting. ... follow Seely's advice as Christoph pointed out earlier - you have to modify ... > having total control over both client and server types. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Delegate Failure after Migration to .NET 2.0 - Vista
    ... remoting to work in .NET 2.0 for you? ... ActivatedClientTypeEntry entry = new ... I make the single below call in order to register my server type. ... the client. ...
    (microsoft.public.dotnet.languages.csharp)
  • Reuse of Remoting Channels...
    ... makes it possible for the server to know the identity of the caller. ... If my client is on the other side of a Windows 'realm' (as in the ... RemotingConfiguration options) to reject any clients whose credentials ... "Remoting server cannot be reached. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: soapsuds
    ... pre-instantiated exe running in a singleton mode, for remoting, even if you ... Revised framework implementations will probably not break your application ... We can then compile the client using this code which allows us ... Both client and server are ...
    (microsoft.public.dotnet.framework.remoting)