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. th

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 Que

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
+0800, Yves Sy <[EMAIL PROTECTED]> wrote: > >>>>> > >>>>> > >>>>>> Here's a follow-up question: > >>>>>> > >>>>>> I remember creating a thread in one of my Action clas

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: > > 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 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 thes

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
IL PROTECTED] > cc: > 12/06/2004 02:52 Subject: RE: [OT]Threads and > Servlets Question > > > PM > Please respond to > "Stru

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
EMAIL PROTECTED] Behalf Of Vic > > Sent: Monday, 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 mass

Re: [OT]Threads and Servlets Question

2004-12-07 Thread Dakota Jack
> >Dennis > > > > > > > > > >bryan <[EMAIL PROTECTED]> > >12/06/2004 03:14 PM > >Please respond to > >"Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > >To > >Struts Users Mailing List <[

Re: [OT]Threads and Servlets Question

2004-12-07 Thread bryan
te resources. Does this mean that instantiating new objects is a Bad > >Thing within an action? > > > >Dennis > > > > > > > > > >bryan <[EMAIL PROTECTED]> > >12/06/2004 03:14 PM > >Please respond to > >"Struts Users Mailing

Re: [OT]Threads and Servlets Question

2004-12-07 Thread bryan
> Threads rule! > > Seriously though... only use threads if you know how they work :) Or if your using a modern linux kernel . + 2.6 Otherwise you can say bye bye to your server . --b - To unsubscribe, e-mail: [EMAIL P

Re: [OT]Threads and Servlets Question

2004-12-07 Thread bryan
ating new objects is a Bad > 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]&

RE: [OT]Threads and Servlets Question

2004-12-07 Thread Daniel Perry
Sent: 07 December 2004 06:26 > To: Struts 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 Servl

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Erik Weber
/resp) depending upon the volume of traffic you should be able to get away with a small 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 PROTE

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: > > 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! > > > hehe. > What about the ServletContext

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Erik Weber
tions use those threads via a common synchronized data structure (hidden behind an interface). Ensure that you have a good unique context for correlating the request and response (not to be confused with the http req/resp) depending upon the volume of traffic you should be able to get away with a sm

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
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! hehe. What about the ServletContext object though? Dakota Jack wrote: Spawning threads is something I do almost as a matter of c

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. Y

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Frank W. Zammetti
elating the request and response (not to be confused with the http req/resp) depending upon the volume of traffic you should be able to get away with a small number of threads. The actual count can be controlled via an extenal property. good luck. JC "Jim Bar

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
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] Sent: Monday

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Frank W. Zammetti
pending upon the volume of traffic you should be able to get away with a small number of threads. The actual count can be controlled via an extenal property. good luck. JC "Jim Barrows" <[EMAIL PROTECTED]To: "Struts Users Ma

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Craig McClanahan
threads then it is probably a better approach to > >>>create a thread pool at appliction initialization and have the actions use > >>>those threads via a common synchronized data structure (hidden behind an > >>>interface). > >>> > >>

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Andrew Hill
<[EMAIL PROTECTED]To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, m>[EMAIL PROTECTED] cc: 12/06/2004 02:52 Subject: RE: [OT]Threads and Se

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
The actual count can be controlled via an extenal > >>>property. > >>> > >>>good luck. > >>> > >>>JC > >>> > >>> "Jim Barrows" > >>> <[EMAIL PROTECTED]

Re: [OT]Threads and Servlets Question

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

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Craig McClanahan
he actual count can be controlled via an extenal > > property. > > > > good luck. > > > > JC > > > > "Jim Barrows" > > <[EMAIL PROTECTED]To: "Str

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
; > "Jim Barrows" > <[EMAIL PROTECTED]To: "Struts Users > Mailing List" <[EMAIL PROTECTED]>, > m> [EMAIL PROTECTED] >

RE: [OT]Threads and Servlets Question

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

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 yo

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 yo

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 PRO

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 ). >

RE: [OT]Threads and Servlets Question

2004-12-06 Thread Jim Barrows
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic > Sent: Monday, 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

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 int

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 servle

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Jan Fetyko
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 ( particularly on Linux ). > >--b >

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 on

Re: [OT]Threads and Servlets Question

2004-12-06 Thread DGraham
ot; <[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

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

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 > tra