all groups > dotnet web services > august 2006 >
You're in the

dotnet web services

group:

Can a webservice be implemented as a Singleton


Can a webservice be implemented as a Singleton William
8/25/2006 5:57:36 PM
dotnet web services:
I have a need to implement a webservice where speed is of the essence. This
web service will process product orders in a B2B scenario where SLA's are
critical, as well as collect metrics on the duration of various milestones
through the application layers path that will be persisted to a BizTalk 2006
BAM interface for QoS tracking and reporting. Because the BAM API call is
another path through the layers peripheral to the order I would like to
write the collected metrics to a global synchronized Queue object and
process it out of band via a worker thread created when the Singleton is
instantiated, thus allowing the primary product order request to finish as
quickly as possible.

Question: Is this doable?

Re: Can a webservice be implemented as a Singleton Gaurav Vaish (www.EduJini.IN)
8/28/2006 12:35:49 AM
[quoted text, click to view]


Technically, everytime, the web service will be instantiated.
You can however, make a private static variable and work using the same....
but yes, the WS engine will call the public default constructor.


--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.org
http://www.edujini.in | http://webservices.edujini.in
-------------------

AddThis Social Bookmark Button