On Thu, 25 Nov 2004 09:58:11 +1100, Glen Stampoultzis
<[EMAIL PROTECTED]> wrote:
> Can hivemodule.xml be read from any location other than WEB-INF?
It sure can. You may run into a snag (as I did) if you don't load the
default descriptors on the classpath (namely, the descriptors for
Hivemind itself). Here's sample code I lifted from my earlier thread
on this
ClassResolver classResolver = new DefaultClassResolver();
RegistryBuilder registryBuilder = new RegistryBuilder();
registryBuilder.processModules(classResolver);
registryBuilder.processModule(classResolver, new
FileResource("C:\\path\\to\\hivemodule.xml"));
Registry registry = registryBuilder.constructRegistry(Locale.getDefault());
- alistair
--
http://groups.yahoo.com/group/agila
http://aisrael.multiply.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]