Why not to create threads?

2003-10-28 Thread Walker 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. Chris -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: 28 October 2003 15:53 To: Tomcat Users

RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav
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

Re: Why not to create threads?

2003-10-28 Thread harm
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

Re: Why not to create threads?

2003-10-28 Thread Christopher Schultz
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

RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav
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

Re: Why not to create threads?

2003-10-28 Thread Tim Funk
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

Re: Why not to create threads? (OT)

2003-10-28 Thread Christopher Schultz
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