>> Ian Sparks wrote:
>> Where do you initialize your worker threads? From a servlet
>> or from some startup hook in WebWare (if so, where is the
>> best place to put this) ?

> Nick Murtagh wrote:
> From a servlet.

Hmm...does that provide you a way to kill a thread? Do you register the thread in some 
way with the application?

I want to serialize my long running processes because they are extremely resource 
intensive (creating large XML documents from a database with a lot of SQL calls, then 
creating a large PDF document in-memory from the XML before saving it).

I'd also prefer to start the thread on application startup. Where would I put that 
code? Application.py?


-----Original Message-----
From: Nick Murtagh [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 12:14 PM
To: Ian Sparks
Subject: Re: [Webware-discuss] Task-Queue using Webware...


Ian Sparks wrote:
> So you use a number of worker threads? Since I'm concerned 
 > about swamping my server I think I'll stick to one.

Depends on what you're doing I suppose. I have a few long
running tasks that I don't want the user to have to wait
for. Then I have a page where the user can check the status
of each task.

> Where do you initialize your worker threads? From a servlet
 > or from some startup hook in WebWare (if so, where is the
 > best place to put this) ?

 From a servlet.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to