473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Service Functionality using IIS/Application Servers

Hi:
I am looking for any ideas/comments/suggestions on how a Windows
Service kind of functionality can be acheived from a web application
which which will run under IIS or for that matter any application
server say Tomcat. I have a Windows service which should run every half
hour and call four different methods in a Web Service in serial mode.
The methods will have to wait for the previous one to finish and if the
previous one is a really long process (say 15 minutes) the subsequent
method will not get invoked till the previous one gets finished. That
leaves us to either implement a Windows Service for each method (which
might be tough maintaining services as the number of methods increase)
or a MultiThreaded application so that each method will run in Parallel
in its own thread in the same service.

But, what we are particularly looking for is " Do we really need a
Windows Service to achieve this task?". Can it not be an application
that will start and run along with an Application Server since ASP.Net
has it own Timers Class and all of these scheduling activities can be
achieved using that? I am looking for any tips/suggestions or even if
this is possible at all?

Thanks.

Jan 18 '06 #1
3 2127
I don't understand where ASP.NET comes into this. You basically have a
task that needs to run every 1/2 hour, right? Just write it as an EXE and
then set it up as a scheduled task which runs every 1/2 hour, and that's it.

Whether or not you make the calls to the four web services in serial or
parallel is up to you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"nkunapa" <nk**********@uth.tmc.edu> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi:
I am looking for any ideas/comments/suggestions on how a Windows
Service kind of functionality can be acheived from a web application
which which will run under IIS or for that matter any application
server say Tomcat. I have a Windows service which should run every half
hour and call four different methods in a Web Service in serial mode.
The methods will have to wait for the previous one to finish and if the
previous one is a really long process (say 15 minutes) the subsequent
method will not get invoked till the previous one gets finished. That
leaves us to either implement a Windows Service for each method (which
might be tough maintaining services as the number of methods increase)
or a MultiThreaded application so that each method will run in Parallel
in its own thread in the same service.

But, what we are particularly looking for is " Do we really need a
Windows Service to achieve this task?". Can it not be an application
that will start and run along with an Application Server since ASP.Net
has it own Timers Class and all of these scheduling activities can be
achieved using that? I am looking for any tips/suggestions or even if
this is possible at all?

Thanks.

Jan 18 '06 #2
Thanks. I just gave ASP.net as an example. Well, I would say a
scheduled task in also one of the options but it might only add
additional code to keep track if the previous scheduled task has really
completed as the task that is supposed the run at the next half hour
cycle is supposed to run only if the previous task has completed. I am
not if this functionality can be achieved by creating an EXE and
setting it up as scheduled task unlike a windows service. I mean one of
the four methods may be still running while three others might have
completed. Then the second half hour cycle should only process the
three that were completed in the first cycle.

The basic question I am asking is "Is is possible to set up an
application to attach itself to an Application Severs
(IIS/Tomcat/...etc) and run as soon the application server starts?".

Thanks.

Jan 18 '06 #3
Unless the server has a hook to allow this, no, it is not possible,
there is not a general mechanism to allow you to do this.

However, I don't see how this is related to you having a task running
every half hour. I mean, if you set it up as a scheduled task, you dont
need another service to tell you to start, the scheduled task service will
just handle it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"nkunapa" <nk**********@uth.tmc.edu> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Thanks. I just gave ASP.net as an example. Well, I would say a
scheduled task in also one of the options but it might only add
additional code to keep track if the previous scheduled task has really
completed as the task that is supposed the run at the next half hour
cycle is supposed to run only if the previous task has completed. I am
not if this functionality can be achieved by creating an EXE and
setting it up as scheduled task unlike a windows service. I mean one of
the four methods may be still running while three others might have
completed. Then the second half hour cycle should only process the
three that were completed in the first cycle.

The basic question I am asking is "Is is possible to set up an
application to attach itself to an Application Severs
(IIS/Tomcat/...etc) and run as soon the application server starts?".

Thanks.

Jan 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Blaxer | last post by:
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
0
by: JDF | last post by:
I am trying to create a Windows service using SimpleXMLRPCServer and win32serviceutil. The service itself seems to be working properly (starts, stops, etc) and I can connect using an XMLRPC client...
3
by: rkausch | last post by:
Hello, I'm performing some research to determine the feasibility of developing a Windows Service (see http://en.wikipedia.org/wiki/Windows_Service for the specific definition of "service" to which...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
0
balabaster
by: balabaster | last post by:
Hi, I know this question has been answered before (somewhat) but I have a twist... I've written a client/server application where the server portion runs as a windows service and allows...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.