Webservice - start and stop

M

MA

Hi all!

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to start and stop this service by using a web
interface
(start and stop button). But I can´t find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre
 
H

Harris Reynolds

Sounds like you'll need to implement some lifecycle methods around your web
service. One approach to this is having three methods (operations in web
service jargon).

Start();
YourWebServicerOperation( Parameters here );
Stop();

Start could create a thread(s) that would service requests and record the
start time. Stop could stop the thread(s) and record the stop time; and your
actual web service would be the third (or more) method(s). We've used a
similar approach with some success on a project.

hope this helps,

~harris
http://www.armchairathletes.com
 
M

MA

Hi Harris!

Thanks for your answer. I´ve done it with a timer witch I start and stop
with button-events. Every time it´s elapsed I do the operations that should
be done.

It´s a little bit unstable with timer.stop() and timer.enabled=false;. It´s
not allways the timer want´s to stop, but that is a smaller problem right
now :)

/Marre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top