On Aug 26, 2009, at 5:33 AM, Bertrand Delacretaz wrote:

Hi Josh,

On Wed, Aug 26, 2009 at 12:10 AM, Josh Kennedy<[email protected]> wrote:
...I'm new to using spring and jackrabbit and was wondering what the best approach is to configure jackrabbit when it is deployed inside sling inside a webapp. Currently the only way I have found to successfully configure it was by "extending" the jackrabbit-server module and repacking it inside a
custom bundles module.  This works but seems a bit contrived.  I've
attempted to specify which configuration file to use in the sling.properties
file as well as in the web.xml.  Neither seemed to work....

The changes of https://issues.apache.org/jira/browse/SLING-739 should
help, can you try that?

...Also, I would like my content bundles to be able to updated local file system copies from within the maven build directory as things are changed
inside the JCR....

Not sure what you mean, is that about replicating repository content
to the filesystem?

Correct, what I am looking to accomplish is that any changes made to the content, scripts, or properties inside the JCR are written to the bundles local build directory.

As an example, lets say I am working on content that was installed from Bundle Foo. If I built and deployed that bundle to a local sling instance on my workstation from ~/bundles/foo/, I would like any changes done inside the JCR to be applied to the corresponding files in the build directory. This is only for work that is done inside the development environment and would be disabled in the production environment. For the time being all content is still going to have it's versioning maintained inside of svn.

I thought I saw someone mention a way to do this, however I can't remember where.


...From the looks of it, jcr install seems it may be able to
do this, however I haven't had much luck finding any documentation on jcr
install, or examples of it being used.  Any pointers in the correct
direction on using jcr install would be greatly appreciated....

My plan is to document jcrinstall once I'm done with SLING-1078, so
soon hopefully.

Briefly, jcrinstall picks up bundles and configs stored in the
repository, and activates them.

For example, a bundle found under /libs/foo/install/somebundle.jar
will be automatically installed, or removed if that file goes away.
Same for a sling:OsgiConfig node at /libs/foo/install/some.config.pid.

I'm not sure if that's what you need, but if yes I'm happy to elaborate.

I will also need that functionality. As I mentioned above I am still going to be versioning content inside of svn, and I would like to be able to have the node properties, content, and scripts in one bundle that can be installed into an active Sling instance.

On that note, is there any available reference documentation or configs for using jcrinstall? Or until SLING-1078 is there something else I should be using to install content bundles?


-Bertrand

Reply via email to