1 Reply Latest reply on May 29, 2012 10:29 AM by Randall Hauch

    can modeshape 2.8 be called with jcr 1.0 api?

    Luca Stancapiano Expert

      Hi.... I must use an application done with jcr 1.0. This application would call Modeshape through JCR API. Modeshape 2.8 is installed in the same jvm. Can I call modeshape 2.8 without use the jcr 2.0 api javax.jcrRepositoryFactory?

        • 1. Re: can modeshape 2.8 be called with jcr 1.0 api?
          Randall Hauch Master

          You can indeed use ModeShape with applications that use the JCR 1.0 API. However, since ModeShape does require the JCR 2.0 API JAR, you really need to have the 2.0 JAR on the classpath. That should be perfectly fine, since the application will continue to only use the JCR 1.0 API methods, and because the JCR 2.0 API is a strict superset of JCR 1.0 (although JCR 2 deprecates some functionality, ModeShape correctly implements all of the JCR 1.0 methods that were deprecated in 2.0).

           

          So you do not need to use the javax.jcr.RepositoryFactory method; you can either set it up via JNDI or directly configure the ModeShape instance via ModeShape-specific code. If you have any questions, please ask.

           

          Best regards,

           

          Randall