DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 9 Aug 2007 17:17:51 +0100,    posted on: microsoft.public.dotnet.framework.remoting        back       

Thread Index
  1    Krip
          2    UL-Tomten
                 3    Krip


SAO Singleton - Multiple Instances?   
I've got a server activated object (SAO), in singleton mode (hosted in a 
server Console application on same machine as client).  On the client, I can 
instantiate serveral instances via Activator.CreateInstance, and each 
instance maintains its own state correctly (via properties on the object). 
This is what I want!  However, it's not the way I understand and read that 
Singletons are supposed to work (all mention of it indicates that state will 
be shared across ALL instances).

Can anyone confirm that I can rely on this stateful type of operation?

Thanks.

P.S. I'm using .NET 2.0.
Date:Thu, 9 Aug 2007 17:17:51 +0100   Author:  

Re: SAO Singleton - Multiple Instances?   
On Aug 9, 6:17 pm, "Krip"  wrote:


> I've got a server activated object (SAO) [...] via Activator.CreateInstance,


Isn't Activator.CreateInstance() only for CAOs? I think you should
Activator.GetObject(). Here's a basic tutor:
http://www.codeproject.com/csharp/dotnetremotingbasictutor.asp
Date:Thu, 09 Aug 2007 14:04:26 -0700   Author:  

Re: SAO Singleton - Multiple Instances?   
Right, we might be doing CAOs even though we configured for SAOs.  That 
matches with the behaviour we're seeing.  Thanks for the insight.
Date:Fri, 10 Aug 2007 11:07:56 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us