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 "StopSchedu ler" web method is called the timer is
stoped.
I tried to use a System.Timers.T imer 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.T imer();
timer.enable();
timer.start();
}
[WebMethod]
public void StopScheduler()
{
timer.stop();
} 2 6272
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 or30 minutes. I would like to use web service interface to
control thetimer (start, stop, etc). I think a workable solution is
to implementthe timer in a Windows Service and use the web service to
minotor andcontrol 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. Thegoal is taht when a "StartScheduler " web method is
invoked, a timinglogic starts to run on the server and call a set of
commands every 15minutes, and a "StopSchedu ler" web method is called the
timer isstoped.
I tried to use a System.Timers.T imer object in the web
service classas shown in the following but it doesn't work. I tried to
store thetimer in a session object but it still doesn't work. Any
suggestionson how to implement this? Thank you very much!
-Yi
--- [WebMethod] public void StartScheduler( ) { timer = new System.TImers.T imer(); timer.enable(); timer.start(); }
[WebMethod] public void StopScheduler() { timer.stop(); } .
Hi,
Create a windows service which does the scheduler job to fire some command
every 15/30 minutes.
Create a webservice as a monitoring/controlling service for the windows
service.
You can use some registry entry/xml file/database table to share the
information between the webservice and the windows service.
Regards,
R.Balaji
"Yi" <hu********@hot mail.com> wrote in message
news:be******** *************** ***@posting.goo gle.com... 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 "StopSchedu ler" web method is called the timer is stoped.
I tried to use a System.Timers.T imer 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.T imer(); timer.enable(); timer.start(); }
[WebMethod] public void StopScheduler() { timer.stop(); } This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Codemonkey |
last post by:
Hi,
I am writing an App in .Net that involves some scheduling of tasks. I was
wondering if anybody has come accross any components or examples of how to
implement a schedule manager like the one in the Task Scheduler for Windows?
Basically I'm after something that'll allow me to specify a "recurring" or
"once off" schedule with advanced options like "the first monday in the
month" etc.
|
by: keepyourstupidspam |
last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler
Class.
The scheduler will expose a member function that will add schedules,
its parameters will be an interval to run the tasks and a function
pointer. This function pointer will be a void* function in other
objects that will use the scheduler.
So when another object calls the addSchedule function the scheduler
will run these tasks at each interval provided. There may...
|
by: Mike Thomas |
last post by:
I want to start this thread again - on my first attempt I was a little
ambiguous and was not able to get the answer I need.
I am trying to start Access 2000 on Windows NT 2000 Server by using the
scheduler with the command line:
"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\Apps\ChangeManagement.mdb" /x StartLoad
This works when I run it from the "run" box, or via the scheduler when I am
|
by: LongBow |
last post by:
Hello all,
I have been working on my first embedded project which has been exciting and
stressfull at the same time. My task now is to develop a good scheduler for
transmitting ARINC labels. There is about 180 labels that go out over the bus.
Each label has a transmission rate of 10 ms to 1000 ms or higher. I need to
develop a good scheduler so that each label goes out at their respective
transmission rate so they don't time out. I need...
|
by: Brian Henry |
last post by:
Is there any information out there on how to build a good schedule
application that i can tell it at 1pm do this or at midnight do that?
thanks!
| |
by: Vijay Kerji |
last post by:
Dear Friends,
please read the following scenario...
- A website which invites different users to register/participate in an
initiative
- Intial time period will be given to the user to access the
site(consider an year to start with)
- at the end of the registrtaion period, an auto generated email should
be sent to the registered user( say on 11th month after registration)
|
by: Sid Price |
last post by:
Is there a .NET (2003) class available somewhere that might provide a
comprehensive task scheduler with a better granularity than the one minute
of the built-in scheduler on XP? Even down to 15 seconds would be better
than one minute.
Sid.
|
by: BLUE |
last post by:
I've to call 2 web method from time to time so that the web service will do
cleanup and sync jobs on a database.
These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.
Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use a...
|
by: Giampaolo Rodola' |
last post by:
Hi,
I'm trying to implement an asynchronous scheduler for asyncore to call
functions at a later time without blocking the main loop.
The logic behind it consists in:
- adding the scheduled functions into a heapified list
- calling a "scheduler" function at every loop which checks the
scheduled functions due to expire soonest
Note that, by using a heap, the first element of the list is always
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |