Results 1 to 2 of 2

Thread: Setup Jackrabbit Repo JNDI in Jetty

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    1

    Default 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. #2
    Join Date
    May 2009
    Location
    Rome
    Posts
    22

    Default

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

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •