Re: Multi-threaded servlet environment - Mailing list pgsql-jdbc

From Nic Ferrier
Subject Re: Multi-threaded servlet environment
Date
Msg-id 8765fyflif.fsf@kanga.tapsellferrier.co.uk
Whole thread Raw
In response to Multi-threaded servlet environment  ("David Wall" <d.wall@computer.org>)
List pgsql-jdbc
"David Wall" <d.wall@computer.org> writes:

> I recall reading that conformant servlets and such (EJBs?) do not create
> their own threads, something about being a container issue.
>
> Does anybody know the primary objection to launching threads that take on a
> life of their own?  The container doesn't really need to manage it, per se.
> I suppose a container can drop servlet objects from memory, but as that
> wouldn't necessarily affect a daemon thread, it seems that doesn't harm
> launching them at startup.
>
> Does anybody know if most servlet containers today (Tomcat 4+, WebLogic,
> WebSphere...) have a real problem with such new threads being created or
> not?  What would be the risk in my using them?

This is not the forum to be asking this question. Mail me offline if
you need more help.

In breif the answer is that there is no problem with launching
threads inside servlet containers. There is no spec prohibition (I
served on the spec team until recently).


Nic

pgsql-jdbc by date:

Previous
From: Paul Thomas
Date:
Subject: Re: Multi-threaded servlet environment
Next
From: Dave Cramer
Date:
Subject: Re: Multi-threaded servlet environment