Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservice - start and stop

Reply
Thread Tools

Webservice - start and stop

 
 
MA
Guest
Posts: n/a
 
      09-20-2004
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


 
Reply With Quote
 
 
 
 
Harris Reynolds
Guest
Posts: n/a
 
      09-23-2004
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

"MA" wrote:

> 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
>
>
>

 
Reply With Quote
 
 
 
 
MA
Guest
Posts: n/a
 
      09-23-2004
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

"Harris Reynolds" <> wrote in
message news:A3FF4456-8326-4723-B7BD-...
> 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
>
> "MA" wrote:
>
>> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop java service with command line parameter '-stop'? Will Java 1 11-02-2004 03:32 PM
f2.8 vs f3.7- Is it one stop or 2 stop difference zxcvar Digital Photography 12 05-20-2004 06:28 PM
How to stop a thread without using stop() Son KwonNam Java 11 04-09-2004 08:01 PM
Q. My browser doesn't stop, when I click on STOP. Jim Jones Computer Support 7 02-03-2004 09:47 PM
Stop Debugging doesn't stop in ASP.NET Matt Theule ASP .Net 7 07-24-2003 07:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57