RE: [OT]Threads and Servlets Question

2004-12-08 Thread Marco Mistroni
Hello, Sorry for little intrusion Wanna schedule jobs? Use quartz ... it's cool! Regards marco -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 23:43 To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question

RE: [OT]Threads and Servlets Question

2004-12-08 Thread Pilgrim, Peter
-Original Message- From: Yves Sy [mailto:[EMAIL PROTECTED] Here's a follow-up question: I remember creating a thread in one of my Action classes because I needed to show a Wait while your request is being processed... page. The flow goes something like: 1. the MAIN

RE: [OT]Threads and Servlets Question

2004-12-07 Thread Daniel Perry
Users Mailing List Subject: Re: [OT]Threads and Servlets Question Erik Weber wrote: This is covered by JMX. For example, see javax.management.timer.Timer (which can be initialized/destroyed by a ServletContextListener). The idea is that you can schedule asynchronous operations

Re: [OT]Threads and Servlets Question

2004-12-07 Thread bryan
Thing within an action? Dennis bryan [EMAIL PROTECTED] 12/06/2004 03:14 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: [OT]Threads and Servlets Question threads are also a finite resource

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
, December 06, 2004 1:44 PM To: [EMAIL PROTECTED] Subject: Re: [OT]Threads and Servlets Question A common solution I use is to have async processes run by cron or similar to prepare and massage data. A sperate application that runs every few minutes and dies. A long time ago

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
Subject: Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you should use a message driven bean to do something like that. --b If the brass monkeys

RE: [OT]Threads and Servlets Question

2004-12-07 Thread Jim Barrows
-Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 4:39 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question JMS, of course, is just a Java application. JMS *is* one of these solutions. Or, do I

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
The only reason for me to have any contact with the container is to make resources available to the container. Jack On Tue, 07 Dec 2004 13:41:06 +0800, Andrew Hill [EMAIL PROTECTED] wrote: snip I would never, of course, dream of grabbing a request object, or similar things, and holding it in

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
property. good luck. JC Jim Barrows [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], m [EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original Message

Re: [OT]Threads and Servlets Question

2004-12-06 Thread bryan
because you should use a message driven bean to do something like that. --b On Mon, 6 Dec 2004 11:48:15 -0700, Jim Barrows [EMAIL PROTECTED] wrote: Okay... I know I've read this somewhere, but can't remember. Why is it recommended you NOT start a thread inside a servlet, which would

Re: [OT]Threads and Servlets Question

2004-12-06 Thread bryan
threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you should use a message driven bean to do something like that. --b On Mon, 6 Dec 2004 11:48:15 -0700, Jim Barrows [EMAIL PROTECTED] wrote:

Re: [OT]Threads and Servlets Question

2004-12-06 Thread DGraham
] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you should use a message driven bean to do something

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Craig McClanahan
If you're running on a J2EE app server, or a servlet container configured with appropriate security policies, you won't be allowed to start a new thread. As to why it might be a bad idea, servlet containers make the assumption that the request and response objects they hand to your servlet will

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Jan Fetyko
PROTECTED] cc Subject Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you should use a message driven bean to do something like that. --b On Mon

RE: [OT]Threads and Servlets Question

2004-12-06 Thread Jim Barrows
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:24 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question If you're running on a J2EE app server, or a servlet container configured with appropriate

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Vic
A common solution I use is to have async processes run by cron or similar to prepare and massage data. A sperate application that runs every few minutes and dies. A long time ago it was said Batch is bread and butter of IT. View is only the icing on the cake. .V Jan Fetyko wrote: This is

RE: [OT]Threads and Servlets Question

2004-12-06 Thread Jim Barrows
-Original Message- From: bryan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:15 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Jan Fetyko
Makes sense, will have to look into JMS I guess, cron is the easiest and it work for 90% of the stuff, oh, well, it rocks. P.S. In the mean time, this thread about threads, is spinning up new threads, but that's OK, we are all thread safe. Jf On Mon, 06 Dec 2004 14:43:55 -0600 Vic [EMAIL

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:24 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question If you're running on a J2EE app server, or a servlet container configured

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:24 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question If you're running on a J2EE app server, or a servlet container configured

RE: [OT]Threads and Servlets Question

2004-12-06 Thread Jeff_Caswell
: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
], m[EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Craig McClanahan
] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Frank W. Zammetti
] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original Message- From: bryan [mailto:[EMAIL

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
Users Mailing List Subject: Re: [OT]Threads and Servlets Question threads are also a finite resource ( particularly on Linux ). --b On Mon, 6 Dec 2004 21:13:57 +0100, bryan [EMAIL PROTECTED] wrote: because you should use a message driven bean to do something like that. --b

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original Message- From: bryan [mailto:[EMAIL PROTECTED

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Frank W. Zammetti
PROTECTED], m[EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original Message- From: bryan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:15 PM To: Struts Users Mailing

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Frank W. Zammetti
]To: Struts Users Mailing List [EMAIL PROTECTED], m [EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Dakota Jack
Spawning threads is something I do almost as a matter of course in my programming. I don't know what I would do without doing that. I would never, of course, dream of grabbing a request object, or similar things, and holding it in a new thread. I would never, ever, anytime dream of doing that.

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
snip I would never, of course, dream of grabbing a request object, or similar things, and holding it in a new thread. I would never, ever, anytime dream of doing that. Yuk! /snip hehe. What about the ServletContext object though? Dakota Jack wrote: Spawning threads is something I do almost as a

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Erik Weber
number of threads. The actual count can be controlled via an extenal property. good luck. JC Jim Barrows [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], m [EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Servlets Question PM Please respond to Struts Users Mailing

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Craig McClanahan
On Tue, 07 Dec 2004 13:41:06 +0800, Andrew Hill [EMAIL PROTECTED] wrote: snip I would never, of course, dream of grabbing a request object, or similar things, and holding it in a new thread. I would never, ever, anytime dream of doing that. Yuk! /snip hehe. What about the ServletContext

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Erik Weber
]Threads and Servlets Question PM Please respond to Struts Users Mailing List -Original Message- From: bryan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:15 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question threads are also a finite resource