>> soup_or_po...@yahoo.com wrote:
>>> The setDaemon method was ignored. I want to eventually port
[quoted text clipped - 8 lines]
> Thanks, Lew. When I made a servlet immplement Runnable the java
> compiler didn't throw any errors.
There's no compile-time issue with such code, so it won't. You can implement
Runnable even in non-threaded code, in fact, but that is also irrelevant. The
issue is at runtime, when the Web container (Tomcat, JBoss, BEA, WebShere,
OAS, Glassfish, Sun App Server, ...) tries to manage the application's thread,
and the application is doing its own thread thing. Entanglement ensues.
It can be done, I suppose, but I wouldn't want to do it.
-- Lew
Arne Vajhøj - 09 Jun 2007 18:24 GMT
>>> soup_or_po...@yahoo.com wrote:
>>>> The setDaemon method was ignored. I want to eventually port
[quoted text clipped - 16 lines]
>
> It can be done, I suppose, but I wouldn't want to do it.
In a servlet only container as Tomcat and in pre-1.4 J2EE app
servers it is the only way of doing it.
(timer service was added in J2EE 1.4 spec)
Arne