473,581 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2139
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.co m

"nkunapa" <nk**********@u th.tmc.edu> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.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.co m

"nkunapa" <nk**********@u th.tmc.edu> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.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
5582
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 goal of the project is to write a windows service in vb.net that runs on many workstations that can automatically update itself from a central web...
2
6883
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 (which is the UI used to adjust the actions taken by, and the schedule of the service), then a privileged user thread should be used in the UI - no...
7
3184
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. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconintroductiontontserviceapplications.asp But, when I started the service I got a message box saying that the service is being...
0
1990
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 from the localhost. However when I connect from a remote client, I either get a socket error or an xmlrpclib.ProtocolError error. If I use...
3
1549
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 I'm referring) to perform a particular task. I'm having some trouble determining if a service's functionality can be accessed in a non-I/O manner...
0
2686
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 to whether my solution is robust or whether there is a better way to do it. What I've been trying to do is to create a core project with different...
1
15208
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 can no longer connect to the domain controller. Ping resolves the domain controllers name to the correct ip nslookup finds the ip but can not resolve...
0
1795
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 connections across the network from remote users. The application all works like a charm and is very effective. However, during testing it occured to me...
0
7873
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, 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...
0
8153
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, 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. ...
0
8309
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8178
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 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...
0
6558
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5679
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5365
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3806
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...
0
1141
bsmnconsultancy
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...

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.