Implementing scheduler in web service

From: Tom Egginger (tomegginger_at_ggmmxx.net)
Date: 07/02/04


Date: Fri, 2 Jul 2004 14:10:30 -0700

Hello Yi,

I think there is no "good" solution for your problem using
a webservice only - webservices are not designed for such
purpose at all!

Maybe you have the possibility to access any scheduling-
components - but what are your concerns regarding the
windowsservice AND webservice solution?

Regards

Tom

>-----Original Message-----
>Hi, I am implementing a scheduler that will fire a
command every 15 or
>30 minutes. I would like to use web service interface to
control the
>timer (start, stop, etc). I think a workable solution is
to implement
>the timer in a Windows Service and use the web service to
minotor and
>control the windows service, but I don't like the "web
service +
>windows service" solution.
>
>It would be better if everything is in the web service
package. The
>goal is taht when a "StartScheduler" web method is
invoked, a timing
>logic starts to run on the server and call a set of
commands every 15
>minutes, and a "StopScheduler" web method is called the
timer is
>stoped.
>
>I tried to use a System.Timers.Timer object in the web
service class
>as shown in the following but it doesn't work. I tried to
store the
>timer in a session object but it still doesn't work. Any
suggestions
>on how to implement this? Thank you very much!
>
>-Yi
>
>
>---
>[WebMethod]
>public void StartScheduler()
>{
> timer = new System.TImers.Timer();
> timer.enable();
> timer.start();
>}
>
>[WebMethod]
>public void StopScheduler()
>{
> timer.stop();
>}
>.
>



Relevant Pages

  • Windows Service will not work
    ... I first a dll for connection to ODBC-Databases and a Webservice for doing ... Now I made a windows service, used a timer and let him do the same work like ...
    (microsoft.public.dotnet.languages.vb)
  • Why Timer stop working ?
    ... I've writed a C# windows service in VS 2003. ... of a web service. ... The timer interval is 1 sec, and each functions 'counts' his number of timer ... (i save the last clock datetime in TmrSystem_Elapsed event handler and i ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Implementing scheduler in web service
    ... Create a windows service which does the scheduler job to fire some command ... Create a webservice as a monitoring/controlling service for the windows ... I would like to use web service interface to control the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Calling a webservice asynchronously
    ... something a Message Queue or perhaps a Windows Service? ... > when the client browser window is closed it sends an HTTP abort and kills ... > the webservice. ... How do I keep the client from killing the web service? ...
    (microsoft.public.dotnet.framework)
  • Re: Web Service as a background service
    ... the web service should kick off a timer and the Stop method stops the timer. ... I've tried creating a seperate thread in hopes that the worker thread would ... If you need the service to be triggered based on a client calling the web service, then have the web service send a message to the Windows Service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading