Rick Mann wrote:
>
> First off, I apologize for being rude. It wasn't my intent. But I was trying
> to quash what I interpreted to be a deliberate attempt to say "just do
> this". The point I'm trying to make is that "this" (the solutions proposed
> so far) don't really solve my problem.
No worries :)
> So, please accept my apologies for getting frustrated and short. What I
> originally asked for was some guidance into the Catalina sources so that I
> could implement this myself. I'd love it if the feature were incorporated
> into the Tomcat sources permanently, but that was not a requirement (yet,
> anyway ;-) )
>
> on 8/31/01 10:02 AM, Christopher Cain at [EMAIL PROTECTED] wrote:
>
> > Look, if you want shared classes for multiple webapps, but not all
> > webapps, then:
> >
> > 1) Create a common directory outside of TC
> > 2) Put the jars there
> > 3) Create symlinks to the jars in the relevant WEB-INF/lib subdiretories
>
> The problem with this solution is that it implements class sharing in the
> file system, which is neither clean nor necessarily portable. What if I'm
> running catalina on a device that doesn't support symlinks?
AFAIK, there is no "standard" system that TC runs on which does not
support symlinks. For Windows there's always Cygwin, which many people
(myself included :) prefer to run Tomcat in anyway, should you find
yourself stuck in Windoze. I suppose that some of the "embedded" devices
might not do symlinks, since I'm not too familiar with them. I would
consider the above approach to be fairly portable, but that's just me.
As far as class sharing in the file system, the only way in which I can
see it being "unclean" is in the case of shared memory, static
resources, etc. (and in that case, you'll need to separate things out
anyway). Symlinks are _very_ common in the Unix world, and even M$ has
decided to use them in all of their new filesystems (in fact, I saw a
press release last year in which they seemed to imply that they recently
_invented_ them ... LOL!). They are quite a handy little solution in
most cases, and I use them frequently for many things Tomcat.
But of course, this is just one man's opinion, based on my experience
with things similar to what you are facing. If you don't feel that
symlinks are a clean answer, then I'm probably not going to convince you
at this point, so I'll shut up it now :)
> > Paul, like a few others, was obviously just trying to understand what
>
> Sorry, Paul. I took the wording of your message to be "why not just copy the
> classes", which has been suggested several times and is not what I want or
> need. I didn't realize you were actually trying to understand what it is I
> want. That is, however, what I want. Thanks.
>
> ------------------------------------------------------------
> Roderick Mann rmann @ latencyzero.com.sansspam
- Christopher
/**
* Pleurez, pleurez, mes yeux, et fondez vous en eau!
* La moitié de ma vie a mis l'autre au tombeau.
* ---Cornelle
*/