Re: Tomcat for dummies, subtopic Acronyms

2009-03-19 Thread Gregor Schneider
André, On Wed, Mar 18, 2009 at 7:37 PM, André Warnier wrote: > Nope, just that after people keep throwing mysterious acronyms at me, and > several of them start to use the same ones, I get curious. Since I believe one of those "people" was me, I hope throwing stuff at you didn't hurt too much :

Re: Tomcat for dummies, subtopic Acronyms

2009-03-18 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Tomcat for dummies, subtopic Acronyms Pointers to "JMX" and "RMI", please ? http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/ http://java.sun.com/javase/technol

RE: Tomcat for dummies, subtopic Acronyms

2009-03-18 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Tomcat for dummies, subtopic Acronyms > > Pointers to "JMX" and "RMI", please ? http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/ http://java.sun.com/javase/technologies/core/ba

Tomcat for dummies, subtopic Acronyms

2009-03-18 Thread André Warnier
I think I've waited long enough with these. Pointers to "JMX" and "RMI", please ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [slightly OT] Tomcat for Dummies

2009-03-14 Thread André Warnier
To the people who have indicated their appreciation for the thread so far : I may have provided the pretext and the questions, but the answers were not mine. So don't forget Mark and Chuck and Chris and Peter and Ken and others. They are the non-dummies who wrote the intelligent stuff. Since th

Re: Tomcat for Dummies

2009-03-14 Thread Don Millhofer
Thanks André, my favorite thread ever. I got so much more from this then reading the spec. Don - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [OT] Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/13/2009 1:25 PM, André Warnier wrote: > But for instance the following kind of snippet, while undoubtedly > looking simple and elegant to any confirmed Java servlet programmer, in > the eyes of this beholder is not any better : > > this

Re: Tomcat for Dummies

2009-03-13 Thread David kerber
Edward Bicker wrote: This is a Fantastic request for Info. I am relieved to know there are some folks that can still frame a question in such a way to be a pleasure to read. Thanks, Ed Obviously the answerers agree; look at how much more detailed and useful the responses are!! Some of thi

Re: Tomcat for Dummies

2009-03-13 Thread Edward Bicker
This is a Fantastic request for Info. I am relieved to know there are some folks that can still frame a question in such a way to be a pleasure to read. Thanks, Ed -Original Message- >From: André Warnier >Sent: Mar 13, 2009 12:04 PM >To: Tomcat Users List >Subject: Re

RE: Tomcat for Dummies

2009-03-13 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat for Dummies > > Now, do I understand this wrong You do understand it wrong. > the running servlets A servlet doesn't "run"; threads run, executing code in servlets. > are not being notifie

Re: Tomcat for Dummies

2009-03-13 Thread André Warnier
André Warnier wrote: Caldarale, Charles R wrote: From: Peter Crowther [mailto:peter.crowt...@melandra.com] Subject: RE: Tomcat for Dummies Or does one have to implement in each servlet some kind of callback routine that the ContextDestroy can call ? That works too. Not really. From the

Re: Tomcat for Dummies

2009-03-13 Thread André Warnier
Caldarale, Charles R wrote: From: Peter Crowther [mailto:peter.crowt...@melandra.com] Subject: RE: Tomcat for Dummies Or does one have to implement in each servlet some kind of callback routine that the ContextDestroy can call ? That works too. Not really. From the API spec for

Re: [OT] Tomcat for Dummies

2009-03-13 Thread André Warnier
Christopher Schultz wrote: > Oh, sorry. As you certainly surmised, I wasn't being serious, and was in fact fishing for some reaction. Perl is a "write-only" language (meaning that nobody can ever read a perl script after the fact). I like that one. Let me offer another one, popular in perl g

RE: Tomcat for Dummies

2009-03-13 Thread Caldarale, Charles R
> From: Peter Crowther [mailto:peter.crowt...@melandra.com] > Subject: RE: Tomcat for Dummies > > > Or does one have to implement in each servlet some > > kind of callback routine that the ContextDestroy can call ? > > That works too. Not really. From the AP

Re: Tomcat for Dummies

2009-03-13 Thread Ken Bowen
Interestingthanks Chuck Ken On Mar 13, 2009, at 10:33 AM, Caldarale, Charles R wrote: From: Ken Bowen [mailto:kbo...@als.com] Subject: Re: Tomcat for Dummies I believe (but do not know -- Chuck, Mark??) that Tomcat essentially creates a (new or recycled) thread in which to run

Re: Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/13/2009 12:05 PM, André Warnier wrote: > I just don't like your disparaging tone about perl. Oh, sorry. I wasn't trying to be negative. Actually, I quite like Perl. I'm always the one who gets beat up (verbally) at geek parties when peopl

Re: Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/13/2009 11:34 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Tomcat for Dummies >> >> You can even restart the manager app > > Nit pickin

Re: Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/13/2009 12:04 PM, André Warnier wrote: > As a consequence, Tomcat no longer accepts new requests for that > webapp, and starts the process of stopping it and undeploying it. If > the webapp defined a ServletContextListener, this "thing" '

RE: Tomcat for Dummies

2009-03-13 Thread Peter Crowther
[I seem to be getting very delayed emails from the list; if this has already been answered, ignore me!] > From: André Warnier [mailto:a...@ice-sa.com] > suppose there are 3 active > servlets (processing requests) at the moment the request to > undeploy is > issued by one of them. The servlet iss

Re: Tomcat for Dummies

2009-03-13 Thread André Warnier
Christopher Schultz wrote: Er... does that help? Yes, a lot. It even answers a large part of the question I just posted again. I just don't like your disparaging tone about perl. You know, we perl guys can also "do threads", just as we can also "do OO stuff". We can also "do strict"; we can e

Re: Tomcat for Dummies

2009-03-13 Thread André Warnier
Hi. I hadn't had a chance yet to thank the various people here for having the patience and persistence to explain to this dummy what must be rather evident to experts. I do so now, profusely. It was very informative and rather clear. I also gather that some of the details were not necessarily so

RE: Tomcat for Dummies

2009-03-13 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Tomcat for Dummies > > You can even restart the manager app Nit picking: probably not. It looks like the manager app does all the work of starting and stopping other webapps, so there doesn't

Re: Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, I think it will help to give you perl analogies to everything. Here goes. On 3/11/2009 6:00 AM, André Warnier wrote: > - we have a JVM This is the 'perl' binary. > - "inside" the JVM, we have a Tomcat This is the perl script you're executin

Re: Tomcat for Dummies

2009-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/11/2009 6:33 AM, André Warnier wrote: > And if it asks to undeploy itself, is it not like pulling the carpet > from under its own feet? It's more like asking a parent to pull the rug, but, yes, that's basically what you're doing. > I mea

RE: Tomcat for Dummies

2009-03-13 Thread Caldarale, Charles R
> From: Ken Bowen [mailto:kbo...@als.com] > Subject: Re: Tomcat for Dummies > I believe (but do not know -- Chuck, Mark??) that Tomcat essentially > creates a (new or recycled) thread in which to run contextDestroyed . Looks like it's actually the thread that processes th

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> From: Ken Bowen [mailto:kbo...@als.com] > Subject: Re: Tomcat for Dummies > > Also, each thread could easily generate other > child threads to run Only if the webapp chooses to do so; that's not something Tomcat does. > But after that interval, it invokes contex

Re: Tomcat for Dummies

2009-03-11 Thread Ken Bowen
.. etc.. (sound of me being whacked ..) no, nono domestic violence here :-) It's often hard enough to understand face to face, much less across 5000+ miles. I think the following is a fair description Chuck & others should nail me if it's not. A webapp can be made up of one or m

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat for Dummies > > Now, how many of these "ServletContextListener" things > are in existence, and how many are being called to say > that something is going on ? Read the servlet spec (section 10).

RE: Tomcat for Dummies

2009-03-11 Thread Peter Crowther
> From: André Warnier [mailto:a...@ice-sa.com] > Now, how many of these "ServletContextListener" things are in > existence, Exactly as many as you have defined in web.xml. Probably one, as you probably wouldn't want to define more than that - I'm not even sure whether the spec allows it. > and

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
Ken Bowen wrote: Let's be frugal and use just 2 "instances of a webapp". How do you run "2 instances of a webapp"? You must deploy them. How do you do that? You drop a war file for each into webapps. .. etc.. (sound of me being whacked ..) Sorry, I expressed myself badly I guess. I meant : - t

Re: Tomcat for Dummies

2009-03-11 Thread Ken Bowen
André Warnier [mailto:a...@ice-sa.com] Subject: Re: Tomcat for Dummies If I am not abusing, how does it do that, schematically ? I presume it has a more direct way than to itself isue a HTTP request to the Manager webapp with the appropriate parameters ? No, the HTTP request would be the si

RE: Tomcat for Dummies

2009-03-11 Thread Peter Crowther
> From: André Warnier [mailto:a...@ice-sa.com] > Caldarale, Charles R wrote: > > That should be handled by a ServletContextListener declared > in WEB-INF/web.xml, which will be invoked before the deletion > of the webapp's files. > > > More seriously thus, there seems to be a problem with this logi

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Tomcat for Dummies If I am not abusing, how does it do that, schematically ? I presume it has a more direct way than to itself isue a HTTP request to the Manager webapp with the appropriate parameters

Re: [OT] Tomcat for Dummies

2009-03-11 Thread André Warnier
Caldarale, Charles R wrote: [...] That should be handled by a ServletContextListener declared in WEB-INF/web.xml, which will be invoked before the deletion of the webapp's files. At the risk of sounding heretical and tasteless on this forum, I must admit that this whole Java and Tomcat thing

RE: Tomcat for Dummies

2009-03-11 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat for Dummies > > If I am not abusing, how does it do that, schematically ? > I presume it has a more direct way than to itself isue a > HTTP request to the Manager webapp with the appropriate > param

Re: Tomcat for Dummies

2009-03-11 Thread André Warnier
Mark Thomas wrote: André Warnier wrote: Now comes the basic question : can a webapp stop itself, without taking the whole Tomcat and JVM with it ? In other words, in response to something (a variable being a certain value, or the interception of some event or whatever), can my webapp decide to

Re: Tomcat for Dummies

2009-03-11 Thread Mark Thomas
André Warnier wrote: > - we have a JVM. That is the real process that is running, at the OS > level. That process can be killed, or decide to stop running, at which > point we don't have a JVM process anymore, and thus no Tomcat and no > webapps at all. That's kind of drastic and definitive. Yes

Tomcat for Dummies

2009-03-11 Thread André Warnier
Hi. As part of the "beginners" rubrique, I have a question which will undoubtedly show the depth of my lack of knowledge of things Java and Tomcat. But maybe there will be a sympathetic soul here. Since I am still missing much of the underlying knowledge, I would beg that whoever answers does