On Jul 14, 2006, at 11:26 AM, Peter Crowther wrote:

From: Timothy Collett [mailto:[EMAIL PROTECTED]
Actually, one of the things I'm doing is making a subclass of
Context

Good luck - I wanted to extend StandardContext for my own nefarious
purposes and found it was almost impossible.  You couldn't copy it as
various parts of the system had the class name hardwired, you couldn't
subclass it and do anything rational as much of its implementation was
private rather than protected (and there weren't useful extension
points).  For political reasons I wasn't allowed to change the default
implementation, which would have been by far the simplest approach.
What are you aiming for, and are you certain you will be able to do so?

Actually, so far, I haven't had *too* much trouble with that sort of thing. Most of what I wanted to do was catch the startup and shutdown, and allow for some better persistent storage across sessions. Overriding the StandardContext start(), reload(), and stop () methods works just fine for me.

Incidentally, from what I've learned since I first wrote my subclass of StandardContext, it's entirely possible that 99% of what I want to do can be accomplished with the right listeners and some initialization code called the first time someone accesses the webapp. However, I'm a little entrenched in what I've got now, and unless I find some particular reasons to do so (or end up with a bunch of free time...yeah, right ;-) ), I probably won't take the time to go back and rework it all.

Timothy Collett

--

Having been erased,
The document you're seeking
Must now be retyped.
~haiku~


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to