473,326 Members | 2,081 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,326 software developers and data experts.

Remoting and function

Could someone clear this up for me a bit. I am a little bit uncertain about
this but this is my understanding. Please correct where wrong or bits
missing.

There are two types of remoting :-

<Marshal-by-reference>
<SAO Properties = "Object instanciated on the server. Default
constructor. Creation delayed till first method call. Lifetime controlled by
server">
<SingleCall Properties ="Object created and destroyed
with each client request" />
<Singleton Properties = "Object created and shared
between clients" />
</SAO>
<CAO Properties = "Object instanciated on the server. Multiple
constructors. Creation is not delayed. Lifetime controlled by client" />
</Marshal-by-reference>

<Marshal-by-value>
Can be Client Activated Objects only, and instanciated on the client
itself
</Marshal-by-value>
One thing I really dont understand (no real code examples) is how to remote
using marshal-by-value. I have read that you need to apply the
[Serializable()] attribute to the class in question but is this all you need
to do?

--
Br,
Mark Broadbent
mcdba , mcse+i
=============
Nov 16 '05 #1
2 1181
Hi Mark,
I have posted a reply in the other group.

Please, use your CC field when you need to post a message to more than
one group instead of posting separate messages.

Sunny

In article <#g**************@TK2MSFTNGP12.phx.gbl>, no-spam-please@no-
spam-please.com says...
Could someone clear this up for me a bit. I am a little bit uncertain about
this but this is my understanding. Please correct where wrong or bits
missing.

There are two types of remoting :-

<Marshal-by-reference>
<SAO Properties = "Object instanciated on the server. Default
constructor. Creation delayed till first method call. Lifetime controlled by
server">
<SingleCall Properties ="Object created and destroyed
with each client request" />
<Singleton Properties = "Object created and shared
between clients" />
</SAO>
<CAO Properties = "Object instanciated on the server. Multiple
constructors. Creation is not delayed. Lifetime controlled by client" />
</Marshal-by-reference>

<Marshal-by-value>
Can be Client Activated Objects only, and instanciated on the client
itself
</Marshal-by-value>
One thing I really dont understand (no real code examples) is how to remote
using marshal-by-value. I have read that you need to apply the
[Serializable()] attribute to the class in question but is this all you need
to do?

Nov 16 '05 #2
thanks.
Regarding the other post. I think it is either a bug with my client or with
the ng. I have noticed once before that when I post a messafe with the exact
same subject as an already existing post, the new post is put under that
one. Whether that is appearing to you your end or not I dont know. If not
then my client is displaying wrong.

--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Sunny" <su***@newsgroups.nospam> wrote in message
news:OS*************@TK2MSFTNGP10.phx.gbl...
Hi Mark,
I have posted a reply in the other group.

Please, use your CC field when you need to post a message to more than
one group instead of posting separate messages.

Sunny

In article <#g**************@TK2MSFTNGP12.phx.gbl>, no-spam-please@no-
spam-please.com says...
Could someone clear this up for me a bit. I am a little bit uncertain about this but this is my understanding. Please correct where wrong or bits
missing.

There are two types of remoting :-

<Marshal-by-reference>
<SAO Properties = "Object instanciated on the server. Default constructor. Creation delayed till first method call. Lifetime controlled by server">
<SingleCall Properties ="Object created and destroyed with each client request" />
<Singleton Properties = "Object created and shared
between clients" />
</SAO>
<CAO Properties = "Object instanciated on the server. Multiple constructors. Creation is not delayed. Lifetime controlled by client" />
</Marshal-by-reference>

<Marshal-by-value>
Can be Client Activated Objects only, and instanciated on the client itself
</Marshal-by-value>
One thing I really dont understand (no real code examples) is how to remote using marshal-by-value. I have read that you need to apply the
[Serializable()] attribute to the class in question but is this all you need to do?

Nov 16 '05 #3

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

Similar topics

2
by: Nick | last post by:
Is there a way that if I host my remoted object in IIS (not having to mess with encryption & authentication via a custom sink) that the server can raise events and the clients can detect them? If...
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...
2
by: Z D | last post by:
Hello, I'm currently using Remoting (HTTP/Binary) to remote a simple object. Everything is working fine except for one function that returns an arraylist of datatables. When I call this...
15
by: Sharon | last post by:
I’m trying to build a generic Publisher-Subscriber that will work over the net, so I’m using the Remoting. I wish that the subscriber user will be notify about the messages sent by the...
0
by: MS Newsgroups | last post by:
Hi, I am trying to get my head around remoting. I have managed to configure the samples on MSDN and that is working fine. I have now tried to build my own remoting application to test this and i...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
4
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it...
6
by: AMDRIT | last post by:
Hello folks, I appologize for the cross post, but I really need an answer on this: I do not think that I am seeing the whole picture here. I would like to create a windows service and a...
8
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are...
3
by: JB | last post by:
Hi All, I've discovered a strange behaviour with Object parameters passed ByVal via remoting and I'm wondering if anybody could shed some light on this. In a non remoting function call, when...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.