Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Inserting $Id$ into files

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: Inserting $Id$ into files

Author Jon Stevens <jon at latchkey dot com>
Full name Jon Stevens <jon at latchkey dot com>
Date 2000-10-04 16:33:12 PDT
Message on 10/4/2000 4:24 PM, "Ed Korthof" <edk at collab dot net> wrote:

> #1 : This requires a shell login on the live machine. This is something
> to be avoided (in the long term, right now it's still needed)

You will need one to fix the problem anyway.

> #2 : I've no reason to believe that instanciations and applications will
> always have only one jar file.

Huh? What does that have to do with this problem?

> #3 : Hitting a servlet w/ authentication to get this information is faster
> and simpler, and still less error-prone.

That doesn't resolve the fact that this is a hack on top of a hack.

> Umm ... the code is simple, and it's not a complext task; and afterwards
> my life will be just slightly easier. I'm willing to make investments in
> advance to make my life easier later.

Why not solve the larger issue instead of making a hack to make your life
eaiser?

> In the scenario which I presented, the problem wasn't that the wrong
> version was getting loaded, but that the version getting loaded had a bug.
> What is important is to figure out where that version lives, fix the code
> base containing it, and upgrade.

Just look at the classpath. BTW, let me point out you will need shell access
to do the upgrade.

> I agree with you on this wholeheartedly -- configuration is the right
> place for this kind of customization, not code.

so, then lets fix it! :-)

> OTOH -- there are some
> complexities involved, as we'd also need to add interfaces for the
> classes & so on. But I've argued for this (I just gave up 'cause it's not
> my area, and I've enough to worry about already).

This stuff isn't black magic. :-)

> We're really not talking about that much additional time to do what lucas
> is talking about; at this point, we've probably spent more time arguing
> than it'd have taken.

Only because the solution causes us to produce more frankensoftware.

> OTOH -- using interfaces & Class.forName() [or the Java 1.1 equivalent,
> which is ugly as sin] would take some time. I don't have time to do that
> right now ...

Think of all the time saved trying to debug the problem caused by doing it
incorrectly in the first place. :-) This is a problem that is only going to
make itself worse and worse...you might as well nip it in the bud now.

FYI, you keep mentioning this 1.1 equivalent and that isn't true. Turbine
has used Class.forName() in this exact manner since day one and doesn't
require special treatment.

-jon

« Previous message in topic | 18 of 26 | Next message in topic »

Messages

Show all messages in topic

Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-03 23:14:23 PDT
     Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-03 23:19:18 PDT
     Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 11:37:59 PDT
         Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 14:23:04 PDT
             Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 14:42:02 PDT
                 Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 14:48:13 PDT
                     Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:01:48 PDT
                         Re: [joist-dev] Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-04 15:18:39 PDT
                             Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:28:46 PDT
                                 Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:39:08 PDT
                             Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:37:40 PDT
                 Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 15:29:24 PDT
                     Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files deploy Deployment Pseudo-user 2000-10-04 15:31:58 PDT
                         Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 15:44:12 PDT
                             Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 15:52:50 PDT
                                 Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 16:04:32 PDT
                                     Re: [helm-dev] Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files edk Ed Korthof 2000-10-04 16:24:20 PDT
                                         Re: Inserting $Id$ into files Jon Stevens <jon at latchkey dot com> Jon Stevens <jon at latchkey dot com> 2000-10-04 16:33:12 PDT
                                         Re: Inserting $Id$ into files edk Ed Korthof 2000-10-04 16:34:56 PDT
                                         Re: [helm-dev] Re: [joist-dev] Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 16:57:25 PDT
                         Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files Manoj Kasichainula <manoj at collab dot net> Manoj Kasichainula <manoj at collab dot net> 2000-10-04 15:55:47 PDT
                         Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 21:57:32 PDT
                             Re: Inserting $Id$ into files edk Ed Korthof 2000-10-05 01:21:41 PDT
                     Re: [helm-dev] Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 16:11:57 PDT
                 Re: [joist-dev] Inserting $Id$ into files dlr Daniel Rall 2000-10-04 16:10:25 PDT
Page: of 2 « Previous | Next »
Messages per page: