stephen
William Lee wrote:
---- Original message ----
Date: Tue, 28 Oct 2003 03:01:38 +1100
From: Stephen Gordon <[EMAIL PROTECTED]> Subject: Re: Starting a background service? To: [EMAIL PROTECTED]
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
Well, what I want is to implement a scheduler that constantly update singletons within the web services. The scheduler needs to run even though the web service's interface does not get called. I can probably run this as a different process that calls soap to update the web service's states, but it's not very desirable for the scheduler may need to invoke that very often.
Do you know if there is a way to "initialize" code before the web service is made available? Is it possible to override the AxisServlet's init() method in order to do this??
Will
--
William (Will) Lee Email: [EMAIL PROTECTED]
Computer Science, University of Illinois at Urbana-Champaign
