Re: How to spwan child processes.

2010-08-24 Thread Peter Crowther
On 23 August 2010 21:56, André Warnier 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 of operatin

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 10:56 PM, André Warnier 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 be used.

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: users-h...@tomcat.apach

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 could

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 offend

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 6:28 PM, Caldarale, Charles R 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)

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. > > "Certain J2EE/JEE applications (for instance those running in EJB and > Web containers) must not spawn new threads; instead all work should be > performed on the m

Re: How to spwan child processes.

2010-08-23 Thread Wesley Acheson
On Mon, Aug 23, 2010 at 5:02 PM, 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) > &g

RE: How to spwan child processes.

2010-08-23 Thread Joseph Morgan
.. because the container already does so. -Original 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.

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? > Q

Re: How to spwan child processes.

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

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 t