You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by William Lee <ww...@uiuc.edu> on 2003/10/27 15:56:03 UTC

Starting a background service?

Is it possible to start up a background process when the web service is first initialized?  Most of the documentation I looked through just mention axis as a stub or front end to the application server.  What I want to do is to start a scheduler background thread before my web service gets initialized.  How do I do so?


Will

--
William (Will) Lee 
Email: wwlee1@uiuc.edu
Computer Science, University of Illinois at Urbana-Champaign

Re: Starting a background service?

Posted by Stephen Gordon <st...@student.usyd.edu.au>.
Is it necessary to do this before anything else happens?
You could check if the thread is running when the web service is called 
and if not, start it.
This also has the advantage that if your thread finishes its work it can 
exit and next time you call the web service it will be re-started, to 
check whether there's any more work to do.

stephen

William Lee wrote:

> Is it possible to start up a background process when the web service is first initialized?  Most of the documentation I looked through just mention axis as a stub or front end to the application server.  What I want to do is to start a scheduler background thread before my web service gets initialized.  How do I do so?
> 
> 
> Will
> 
> --
> William (Will) Lee 
> Email: wwlee1@uiuc.edu
> Computer Science, University of Illinois at Urbana-Champaign
> 
>