Announcement Announcement Module
Collapse
No announcement yet.
Setup Jackrabbit Repo JNDI in Jetty Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setup Jackrabbit Repo JNDI in Jetty

    For those who have problem while configure JCR repo in Jetty, the configuration below may get help:

    Code:
    <New class="org.mortbay.jetty.plus.naming.Resource">
            <Arg>jcr/repository</Arg>
            <Arg>
                <New class="javax.naming.Reference" id="reference">
                    <Arg>javax.jcr.Repository</Arg>
                    <Arg>org.apache.jackrabbit.core.jndi.BindableRepositoryFactory</Arg>
                    <Arg>null</Arg>
                    <Call name="add" id="reference">
                        <Arg>
                            <New class="javax.naming.StringRefAddr">
                                <Arg>configFilePath</Arg>
                                <Arg>your-local-path\repository.xml</Arg>
                            </New>
                        </Arg>
                    </Call>
                    <Call name="add" id="reference">
                        <Arg>
                            <New class="javax.naming.StringRefAddr">
                                <Arg>repHomeDir</Arg>
                                <Arg>your-local-path-to-repository</Arg>
                            </New>
                        </Arg>
                    </Call>
                </New>
            </Arg>
        </New>
    Add this config to jetty-env.xml and see the result.
    Cheer!!!

  • #2
    Wow nice hoangnghiem,
    I integrate this in the official documentation http://se-jcr.sourceforge.net/

    Thanks!

    Comment

    Working...
    X