commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship" <>
Subject RE: [HIVEMIND] Examples Please?
Date Wed, 17 Sep 2003 11:29:25 GMT
We're working on the docs and are setup now to provide more and better examples.

HiveMind is very, very new.  If it looks polished, that's a compliment ... and reflects that
many of
the ideas in HiveMind gestated inside Tapestry over the last couple of years.

I'm using HiveMind at work ... I think of it largely as a refactoring tool.  Case study #1
is based
on one usage of HiveMind.  However, its a proprietary application and completely huge.

A module maps to a jar; you'll have multple packages in the jar but only a single HiveMind
If that's a problem, one solution is to refactor your code into more small modules.  HiveMind
supports this well, since it (effectively) adds a late binding, where module A defines the
interface, and module B supplies the implementation.

Due to our current build process, we have a similar issue: multiple logical modules that are
packaged together as a single JAR. In an ideal world, there would be a
ClassLoader.getTResourceInFolder("/META-INF/hivemind") ... but there isn't.  Instead, we have
"external descriptors", a directory under WebLogic where we store the extra class loaders;
servlet's registry bootstrap code processes all the XML files there as well as those found
It works well, but is not quite ideal for a clustered EAR deployment; we'll want to graft
together for that soon. Possibly, our build system will write a catalog of these external
descriptors into a central file.

Howard M. Lewis Ship
Creator, Tapestry: Java Web Components

> -----Original Message-----
> From: James Carman [] 
> Sent: Tuesday, September 16, 2003 9:46 PM
> To:
> Subject: [HIVEMIND] Examples Please?
> Does anyone have a good example application (very simple, 
> please) for HiveMind?  I would like to start using it and I 
> just need a little nudge to get me going.  Like, how do I 
> obtain a handle to a Registry object in the first place to 
> set it as the default?  And, how many of these hivemind.xml 
> files am I going to have to have floating around?  It appears 
> as if I need one for each package in my project, but only one 
> can be in my jar file located at /META-INF/hivemind.xml?  Is 
> this true?  If so, packaging an application could turn out to 
> be rather tedious if I do indeed plan to separate things out 
> into these small, testable modules.  I may be 
> misunderstanding the documentation, though.  Anyway, if 
> anyone has a good starter application (maybe even with the 
> entire project set up with an Ant build script), I would be 
> very appreciative.  I sure wish I would have known about 
> hivemind before.  It looks as if it does everything (and 
> more) that my little "business object factory" framework
> (
.html) does. 

View raw message