Re: How to spwan child processes.

2010-08-24 Thread Peter Crowther
On 23 August 2010 21:56, André Warnier a...@ice-sa.com wrote: and can someone finally explain what spwaning child processes means ? It's a UNIXism - a fork() call spawns a child process from a parent process. Not sure how much further back it goes into the deep, dark and slightly dank dungeon

Re: [OT] How to spwan child processes.

2010-08-24 Thread André Warnier
Peter Crowther wrote: On 23 August 2010 21:56, André Warnier a...@ice-sa.com wrote: and can someone finally explain what spwaning child processes means ? It's a UNIXism - a fork() call spawns a child process from a parent process. Not sure how much further back it goes into the deep, dark

How to spwan child processes.

2010-08-23 Thread Wesley Acheson
Hi, As far as I'm aware your not supposed to extend Thread in JEE. I've seen similar questions on Stack Overflow where it was suggested you may use your containers Thread pool. This sounds like a terrible idea for portability. So take the following example. 1 A request for something specific is

Re: How to spwan child processes.

2010-08-23 Thread Ronald Klop
class OtherAppNotifier implements Runnable { public void run() { ... doe something... } } In your servlet: doGet() { processUserRequest(); new Thread(new OtherAppNotifier()).start(); } You can also use java.util.TimerTask or some other threadpool thing if this spawns too many

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 4:27 PM, Ronald Klop ronald-mailingl...@base.nl wrote: class OtherAppNotifier implements Runnable {  public void run() {      ... doe something...  } } In your servlet: doGet() {   processUserRequest();   new Thread(new OtherAppNotifier()).start(); } Thats my

RE: How to spwan child processes.

2010-08-23 Thread Caldarale, Charles R
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm curious - where in any of the Java EE specs did you come across that? Questions: 1 Should

RE: How to spwan child processes.

2010-08-23 Thread Joseph Morgan
Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, August 23, 2010 10:02 AM To: Tomcat Users List Subject: RE: How to spwan child processes. From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 5:02 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm curious - where

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 6:28 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Certain J2EE/JEE applications (for instance those running in EJB and Web containers) must not spawn new

RE: How to spwan child processes.

2010-08-23 Thread Caldarale, Charles R
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Sorry I don't even know where the specs live. I thought I saw it on sun some time ago but can't find it. I usually search by JSR number. If I've offended you in some way then I'm sorry

Re: How to spwan child processes.

2010-08-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 8/23/2010 11:02 AM, Caldarale, Charles R wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to spwan child processes. Thats my point I thought new Thread() was something I couldn't do (by JEE specs) I'm

Re: How to spwan child processes.

2010-08-23 Thread André Warnier
and can someone finally explain what spwaning child processes means ? What are you all doing to these kids ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 10:56 PM, André Warnier a...@ice-sa.com wrote: and can someone finally explain what spwaning child processes means ? What are you all doing to these kids ? I apologise about the typo and I deliberately didn't want to use the term Threads as I was unsure if threads should