Yes,

you can easily create a service that can call your code
in a separate thread, and call ThreadCleanupHub.cleanup(); after it.
this way any part of your application can use it, and later on you can even
use a Thread pool if many such threads are needed.

If you create a worker class that executes tasks in background,
the worker can use a single thread and call cleanup() after every task finishes.
You can then spawn more workers... etc...

Davor Hrg


On Jan 30, 2008 10:21 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
> On Jan 30, 2008 9:18 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
>
> > you inject the ThreadCleanupHub into your service,
>
> Better delegating this to another services delegated to serve this pourpose.
>
> Regards
> --
> Massimo
> http://meridio.blogspot.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to