Hivemind will look at all the jar files in your classpath and see if they have a META-INF/hivemodule.xml and will load and parse it. That is why it uses contribution points so much. If you want added functionality, include the jar file with the code and reference to the contribution point. Or if you want to deploy the same application with a different "back end" just swap out one jar for another jar with a different implementation of the service.

As to doing a sub-module, I believe it has to be in the same jar file to work. But Howard or another hivemind developer could answer that.

----- Original Message ----- From: "Eric Schneider" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Monday, August 22, 2005 1:06 PM
Subject: Re: Application State Objects in a Library


Hi Adam,

I was curious about this too, Thanks!

A quick follow up.  Is this an either or thing?  For example, the
application's hivemodule.xml file must either be in the WEB-INF
folder or in a jar's META-INF.   Or can you have multiple
hivemodule.xml files deployed with an application?

Also, I noticed in the Tapestry framework itself, the hivemodule.xml
references multiple sub modules...

<sub-module descriptor="tapestry.request.xml"/>

It seems possible to bundle these sub module xml files with libraries
and reference them in the application's hivemodule.xml file.   I
haven't tried it yet, but I'm wondering if someone else has?

Thanks again.
Eric

On Aug 22, 2005, at 11:30 AM, Adam Greene wrote:

yes, if you package the library in a jar file, simply put your
hivemodule.xml in the META-INF directory of the jar file.

----- Original Message ----- From: "Derek Brown" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Sunday, August 21, 2005 1:38 AM
Subject: Application State Objects in a Library



Hello,

In tapestry 4, is it possible to store an application
state object definition (hivemind module) in a
library. So the enduser doesnt have to modify
hivemodule.xml in the WEB-INF.

Thanks



____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


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




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





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

Reply via email to