Why should I be avoiding creating my own threads in a web application? I
have a couple of
scheduled components, and I'm not sure how else I would implement them.
Chris
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 15:53
To: Tomcat Users
Howdy,
Why should I be avoiding creating my own threads in a web application?
I
have a couple of
scheduled components, and I'm not sure how else I would implement them.
It's OK to create and use threads as long as you're careful for
synchronization issues. Threads are a powerful construct when
Informatiefabriek
The Netherlands
Walker Chris [EMAIL PROTECTED]
10/28/2003 05:05 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
'Tomcat Users List' [EMAIL PROTECTED]
cc
Subject
Why not to create threads?
Why should I be avoiding creating my own threads in a web application? I
have
Chris,
Why should I be avoiding creating my own threads in a web
application? I have a couple of scheduled components, and I'm not
sure how else I would implement them.
I realize ther sometimes it's just necessary, so I'm not trying to tell
you that you're wrong for creating threads. That being
Howdy,
The rest of the message aside, I had an only partially related question:
(flamebaitand a poor one at that :)/flamebait). But the fact that
many servlet-based applications end up going the way of the EJB, you
might want to play by their rules if you can.
Can you quote research that shows
You are allowed to create your own threads. But there are restrictions and
limitations for user created threads such as ...
- They should not touch Request and Response objects
- The should be able to know when the servlet container stops if non-daemon
so the jvm may gracefully terminate
- If
Yoav,
The rest of the message aside, I had an only partially related question:
(flamebaitand a poor one at that :)/flamebait). But the fact that
many servlet-based applications end up going the way of the EJB, you
might want to play by their rules if you can.
Can you quote research that shows a