473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

simple remoting

Tom
just a general question

why is it in remoting that sometimes people use a client, a server and a
service (serialised) class that stores the server return value to pass to
the client ?

what I don't understand is why people use the serialised service class when
they can simply use a interface on the client side and call the server
methods directly...

thanks
Tom
Nov 16 '05 #1
2 1012
Hi Tom,

Eventually you are always need to serialize some data. You can use
functionality via interfaces, but if you want to communicate data interfaces
won't help. See even if you have interface with property for each piece of
data the actual values have to be serialzed.

The other diference is that when you use intefaces and MarshalByRef objects
the actual instance operates in the context of the server application (here
..Net Remoting lifetime service comes into play as well). With serialization
all the method are executed by the client and work in its environment. There
the lifetime service has no place as long as everythinng is controlled by
the GC as for any local object.
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Tom" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
just a general question

why is it in remoting that sometimes people use a client, a server and a
service (serialised) class that stores the server return value to pass to
the client ?

what I don't understand is why people use the serialised service class
when
they can simply use a interface on the client side and call the server
methods directly...

thanks
Tom

Nov 16 '05 #2
Tom
thanks for explaining :D

"Stoitcho Goutsev (100) [C# MVP]" <10*@100.com> wrote in message
news:O#**************@TK2MSFTNGP09.phx.gbl...
Hi Tom,

Eventually you are always need to serialize some data. You can use
functionality via interfaces, but if you want to communicate data interfaces won't help. See even if you have interface with property for each piece of
data the actual values have to be serialzed.

The other diference is that when you use intefaces and MarshalByRef objects the actual instance operates in the context of the server application (here .Net Remoting lifetime service comes into play as well). With serialization all the method are executed by the client and work in its environment. There the lifetime service has no place as long as everythinng is controlled by
the GC as for any local object.
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Tom" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
just a general question

why is it in remoting that sometimes people use a client, a server and a
service (serialised) class that stores the server return value to pass to the client ?

what I don't understand is why people use the serialised service class
when
they can simply use a interface on the client side and call the server
methods directly...

thanks
Tom


Nov 16 '05 #3

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

Similar topics

1
by: Tom | last post by:
hi I have a simple question. I am writing a simple remoting app.. basically I have client/server and a serialised service class.. the problem is I am doing some db work on the server and I want...
0
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
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
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...
0
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...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
4
by: | last post by:
I am trying to work out a very simple way to get a Flash form to commmunicate with a .aspnet application that will somehow receive parameters from the flash file. Or, vice versa stream database...
8
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...
11
by: jason | last post by:
we have developed a .NET class library that defines a family of reusable business objects. the class library is developed in C#, and works quite well. one problem, however, is that as more and...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.