473,480 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

difference between CAO and SAO in remoting

any body give exact explanation on how CAO and SAO can be used in remoting
application
Apr 9 '07 #1
1 5143
Hello chandu,
>any body give exact explanation on how CAO and SAO can be used in remoting
application
You might get an even more fantastic answer by posting to
microsoft.public.dotnet.framework.remoting :-) But I'll give it a shot:

Server-activated objects (SAO) are called that because the server decides
if and when instances have to be created. Basically, only when the client
calls a method of the remote service, a message is sent to the server,
which then decides whether to create an instance of a certain class or to
reuse an existing instance.

SAO can use SingleCall activation, for which you register a type using the
RemotingConfiguration.RegisterWellKnownServiceType () method and pass in
the WellKnownObjectMode.SingleCall option. The other alternative is to use
Singleton Activation. To do this, you can either use the same registration
method with the WellKnownObjectMode.Singleton parameter, or publish an
object that has already been instantiated using RemotingServices.Marshal().

For SAO, a call to Activator.GetObject() is used on the client side.

Client-activated objects (CAO) are created on the server side, but the
creation takes place exactly at the point where some creation instruction
is encountered on the client side. This can be a call to
Activator.CreateInstance() or the "new" operator. On the server side, a
CAO type is made available by a call to
RemotingConfiguration.RegisterActivatedServiceType () and the client uses a
call to RemotingConfiguration.RegisterActivatedClientType( ), after which
instances of the remote object can be created just like normal client-side
objects.

Hope it helps.
Oliver Sturm
--
http://www.sturmnet.org/blog - MVP C#
Apr 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1876
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
5653
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
3265
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
3
1699
by: Lucas Tam | last post by:
Does anyone have a good articles that describes the pros and cons of Web Services vs. Remoting Hosted in IIS? Is there a reason to use either or? With Remoting Hosting in IIS, is it possible...
1
3932
by: Nick | last post by:
hi, all What is the difference between C# windows Services and web services in vs.net? Becuase I have a windows services using http remoting, and client access it by a http url address, so it...
2
1397
by: needin4mation | last post by:
What is .NET remoting versus Ajax? Any links are appreciated. I didn't find a straight forward answer. Thanks for any help.
2
2289
by: Chris Pielak | last post by:
Hi. I'm about to try deploying my ASP.NET application, written with the 1.1 Framework. I'm coming across something odd when compiling in Debug and Release mode. When compiling in Debug mode, I...
8
1723
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
1
2397
by: Macca | last post by:
Hi, I am writing a C# server app that listens for clients over a TCP/IP link. The clients are embedded devices with their software written in C. The clients establish connections and then...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7059
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.