Implementing scheduler in web service
From: Tom Egginger (tomegginger_at_ggmmxx.net)
Date: 07/02/04
- Next message: Tom Egginger: "XML errors in webservice call"
- Previous message: Yi: "Implementing scheduler in web service"
- In reply to: Yi: "Implementing scheduler in web service"
- Next in thread: R.Balaji: "Re: Implementing scheduler in web service"
- Messages sorted by: [ date ] [ thread ]
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();
>}
>.
>
- Next message: Tom Egginger: "XML errors in webservice call"
- Previous message: Yi: "Implementing scheduler in web service"
- In reply to: Yi: "Implementing scheduler in web service"
- Next in thread: R.Balaji: "Re: Implementing scheduler in web service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|