> -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
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
+0800, Yves Sy <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>> Here's a follow-up question:
> >>>>>>
> >>>>>> I remember creating a thread in one of my Action clas
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
> -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
IL PROTECTED]
> cc:
> 12/06/2004 02:52 Subject: RE: [OT]Threads and
> Servlets Question
>
>
> PM
> Please respond to
> "Stru
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
> >Dennis
> >
> >
> >
> >
> >bryan <[EMAIL PROTECTED]>
> >12/06/2004 03:14 PM
> >Please respond to
> >"Struts Users Mailing List" <[EMAIL PROTECTED]>
> >
> >
> >To
> >Struts Users Mailing List <[
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
> 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
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]&
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
/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
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
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
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
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
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
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
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
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).
> >>>
> >>
<[EMAIL PROTECTED]To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>,
m>[EMAIL PROTECTED]
cc:
12/06/2004 02:52 Subject: RE: [OT]Threads and
Se
The actual count can be controlled via an extenal
> >>>property.
> >>>
> >>>good luck.
> >>>
> >>>JC
> >>>
> >>> "Jim Barrows"
> >>> <[EMAIL PROTECTED]
<[EMAIL PROTECTED]To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>,
m> [EMAIL PROTECTED]
cc:
12/06/2004 02:52 Subject: RE: [OT]Threads and
Servlets
he actual count can be controlled via an extenal
> > property.
> >
> > good luck.
> >
> > JC
> >
> > "Jim Barrows"
> > <[EMAIL PROTECTED]To: "Str
;
> "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
>
>
>
> > -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
>
>
>
> > -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
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
> -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 ).
>
> -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
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
> -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
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
>
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
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
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
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
39 matches
Mail list logo