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
-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
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
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
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
, 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
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
-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
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
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
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
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:
]
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
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
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
-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
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
-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
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
-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
-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
:
12/06/2004 02:52 Subject: RE: [OT]Threads and
Servlets Question
PM
Please respond
],
m[EMAIL PROTECTED]
cc:
12/06/2004 02:52 Subject: RE: [OT]Threads and
Servlets Question
PM
Please respond
]
cc:
12/06/2004 02:52 Subject: RE: [OT]Threads
and Servlets Question
PM
Please respond to
Struts Users
Mailing List
-Original
]
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
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
]
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
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
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
]To: Struts
Users Mailing List [EMAIL PROTECTED],
m
[EMAIL PROTECTED]
cc:
12/06/2004 02:52 Subject: RE:
[OT]Threads and Servlets Question
PM
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.
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
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
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
]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
35 matches
Mail list logo