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
============= 2 1200
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?
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***@newsgrou ps.nospam> wrote in message
news:OS******** *****@TK2MSFTNG P10.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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 so what would be the best way to
go about having the client handle an event that is fired from the server...I
am currently using SingleCall and not Singleton.
|
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 comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
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 function, nothing is returned (ie length of array =0).
However, if I comment out my config file so that the DLL is run locally
instead of remoting it, everything works fine!!
|
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 remote publisher, so I used delegate that the user will be able to set on
it his own function for that purpuse.
The trouble is that this delegate must not be static because there may be
many subscribers, and each subscriber may have different...
|
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 can't get the application to
"Remote" basically what happens is that the client side uses the dll in the
same directory instead of the remote one. I can test this by stopping the
hosting application, and the client still works. I have a feeling...
| |
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 example in the 101
VB.NET examples. It works great, only 1 instance ever gets created and is
shared by each client. I have a few questions though,
* Can the singleton contain events? In such a way that when the
|
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 throw the
following exception:
System.Runtime.Serialization.SerializationException {“Cannot find the
assembly Tester, Version=1.0.2164.27180, Culture=neutral,
PublicKeyToken=null.”}
|
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 management console, using Visual Basic 2003.
The windows service part, I think, is easy enough. I am more concerned with
the remoting aspect of the project. Below is the general idea of my
approach, please correct my where I am wrong.
|
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 implemented in a
new interface, which derive from the old one to ensure that an old
version of my application (a1) still works with s2.
If i run my new version of the application a2 with s1 I get a
InvalidCastException (Return argument has an...
|
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 a object (as opposed to a value
type like Integer, Boolean, etc) is passed as a ByVal parameter, it's
content can be modified. This is somehow "strange", but I've lived
with that so far.
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |