Remoting and function

M

Mark Broadbent

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

Sunny

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
 
M

Mark Broadbent

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

no-spam-please@no- said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top