Apache Jackrabbit - Override Jackrabbit configuration parameters when deployed in Glassfish v3

☆樱花仙子☆ 提交于 2020-01-17 01:20:28

问题


I feel like an idiot, but where/how do I override the Jackrabbit configuration parameters when deployed in Glassfish v3? I've tried setting rep.home in the Glassfish Admin -> Enterprise Server -> System Properties panel, but it doesn't seem to have any affect.

  • Do I have the property name correct?
  • Is this not the right place to do this?

BTW - I'm using the Jackrabbit release bundled with the Sling API.


回答1:


The Jackrabbit Configuration Parameters indicated by your link are automatically set by the Jackrabbit Repository implementation when reading the repository.xml configuration file.

What you can do to relocate the Jackrabbit Repository inside Sling is either set the "sling.repository.home" framework property (of the OSGi framework into which Sling is deployed).

Alternatively you can edit the Repository Server configuration in the Web Console Configuration Manager page. Select the configuration labeled something like org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.XXX where "xxx" looks like UUID string. In that configuration change the Repository Home path. Please note, though, that this will not move your existing repository directory but just tell Sling to use a different location.



来源:https://stackoverflow.com/questions/5992830/apache-jackrabbit-override-jackrabbit-configuration-parameters-when-deployed-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!