Hi everyone,
I am trying to create some tests that depend upon the hivemind Messages object. While this is not a problem to do this in the context of a tapestry application, I am trying to do this from outside a web app (from a java program).

I figured that I would have to create the Hivemind registry, and call it to get my Messages object. Currently, the messages objected returned from the registry are null. Here is what I have. My WEB-INF/hive-module.xml is in my classpath when I invoke the following, messages are always null. "hra" is the name of my tapestry app.

I would really appreciate a pointer on how to get around this problem. Thanks.




       RegistryBuilder builder = new RegistryBuilder();
       builder.addDefaultModuleDescriptorProvider();
       Registry registry = builder.constructRegistry(Locale.getDefault());
       Messages messages = registry.getModuleMessages("hra");
if (messages == null) throw new Exception("messages are null");






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to