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 12:12:25 GMT
So I wasn't awake ...

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

> -----Original Message-----
> From: Howard M. Lewis Ship [] 
> Sent: Wednesday, September 17, 2003 7:29 AM
> To: 'Jakarta Commons Developers List'
> Subject: RE: [HIVEMIND] Examples Please?
> 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 module. If that's a problem, 
> one solution is to refactor your code into more small 
> modules.  HiveMind really supports this well, since it 
> (effectively) adds a late binding, where module A defines the 
> interface, and module B supplies the implementation.

And I've used this late binding capability to unravel a bad dependency between layers in the

> 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") ... 

That is, I wish I could use getResources() and pass in a folder name and get all the files
in that
folder.  ClassLoader.getResource() only works
if you know exactly what you are looking for.

Servlet API is similar, though a later version of Servlet API supports methods for iterating
the list of files in a context folder.

> but there isn't.  Instead, we have "external descriptors", a 
> directory under WebLogic where we store the extra class 
> loaders; our servlet's registry bootstrap code processes all 
> the XML files there as well as those found normally. It works 
> well, but is not quite ideal for a clustered EAR deployment; 
> we'll want to graft something 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. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message