Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1471

Create example web application that access repository thru JNDI and the JCR RepositoryFactory

    XMLWordPrintable

Details

    Description

      Create a simple web application module in our examples (https://github.com/ModeShape/modeshape-examples) that upon each client request:

      1. obtains a specific repository in JNDI (e.g., "jcr/local/sample") or the JCR Repository Factory (e.g., with ModeShape URL of "jndi:jcr/local/sample")
      2. logs into the repository to get a Session
      3. converts the URL into a path to find the node at that path
      4. generates a simple response with the properties of that node and the list of children
      5. closes the Session (in a finally block)

      The web apps configuration should the JNDI name or URL as a parameter: if the URL begins with "jndi:" then the RepositoryFactory approach should be used; otherwise, JNDI should be used.

      (Alternatively, the URL and JNDI name could be specified in the web.xml, and the app uses them explicitly, choosing one over the other if both are specified.)

      Attachments

        Activity

          People

            oleg.kulikov Oleg Kulikov (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: