[Mono-list] Re: Singletom WebService
robertj at gmx.net
Thu Oct 27 05:21:23 EDT 2005
> Is there any way to use a WebServices as Singleton rather than dynamically
> creating the webservice class instances for each request ? i think we can do
> this in JSP but is it possible with MONO or .NET ?
Not directly, but you can always delegate the calls to a singleton
instance. However, this is not recommended. If you need state,
use ASP.NET's state management. ASP.NET's state can be configured
to be cluster-able, restartable, etc. None of those can be
accomplished with a singleton instance (w/out a lot of work).
More information about the Mono-list