Note: The JCR support for Lenya is in an early stage and should be considered experimental at this point in time. It should probably not be used for any productive purposes at this point in time.
Currently the integration of Lenya with JCR is based upon the writetable and traversable JCRSource provided by Cocoon. At an earlier stage in Lenya history, the developers have introduced the lenya:-Protocol as the contract between the sitemap and retrieving and storing content. This investment has been leveraged now by providing a mapping of the lenya: to the jcr: protocol in order to integrate with JCR.
<role name="org.apache.lenya.cms.repository.NodeFactory" shorthand="node-factory" default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/> |
http://localhost:8888/index.html?lenya.usecase=jcr.import |
You can log into Lenya again and you should be able to work with the application exactly as before. Just your content comes from and will be stored in the JCR repository.
As Lenya leverages the Cocoon JCRSource implementation, any configuration of the repository itself has to be done exactly as you would to this in Cocoon. Search cocoon.xconf (in Lenya) for the component (not: component-instance) configuration for the component with the role javax.jcr.Repository. There you will find information such as
More on the Cocoon JCRSource can be found here:
http://wiki.apache.org/cocoon/JcrSource
Note once again: This is experimental!