[Mono-list] Re: Singletom WebService

Robert Jordan robertj at gmx.net
Thu Oct 27 05:21:23 EDT 2005


Gayan,

> 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).

Rob



More information about the Mono-list mailing list