Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6359593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:32:20+00:00 2026-05-24T23:32:20+00:00

How do I browse a jackrabbit repository using a spring-mvc webapp? How do I

  • 0

How do I browse a jackrabbit repository using a spring-mvc webapp?

How do I map incoming URL requests in the spring web controllers to nodes in the repository? I’d like the users to be able to open a word document in OpenOffice or Word by opening a URL like the following and save back to it via webdav.

http://localhost:8080/my-app/my-doc.doc

Thanks in advance for any ideas.

Éamonn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:32:21+00:00Added an answer on May 24, 2026 at 11:32 pm

    the Jackrabbit Repository and the associated JSR standard for Java Content Repositories alone provides a fairly low level persistency API, which you could probably use to build Repositories for Domain objects, mapping the data to repository structures such as JCR nodes/properties. You will use the JCR API located at the javax.jcr.* package to manipulate the repository (and for maximum portability). In a sentence, you can use Jackrabbit to replace your database.

    A quick google search showed that there are indeed projects that aim to provide similar convenience wrappers to the ones you probably know and love for JDBC and Hibernate, only for JCRs. I found for example the Spring Modules project: http://java.net/projects/springmodules/ which was unfortunately last updated about two years ago, so it is still on JCR 1.0. For sample usage take a look at http://java.net/projects/springmodules/sources/svn/content/trunk/samples/jcr/src/org/springmodules/examples/jcr/JcrService.java?rev=2110
    Still, you could probably write your own JCR2Template without a lot of effort, and encapsulate the repetitive tasks such as connection and exception handing by using the Template Method pattern.

    So as for the request mapping, you can run the JCR on a separate server, just like you would with a relational database, and connect to it via RMI. Here’s an example: http://dev.day.com/content/docs/en/crx/current/developing/accessing_jcr_connectors.html
    I would consider this the “clean” way to use a JCR in Spring MVC applications.

    As for the WebDAV saving part… I know Jackrabbit does indeed support the mounting of Repositories as WebDAV drives, but I don’t really have any experience with it and I honestly can’t imagine a way to tell Word to upload a file upon edit somewhere… But I am not a Word expert at all, sorry….

    Now … the Apache Sling Framework on the other hand provides an interesting approach to build RESTful applications, that integrate well with the repository model and some higher level abstractions of the Repository structure. The way Servlets are resolved in Sling, however is completely different from plain Spring MVC (see http://dev.day.com/content/ddc/blog/2008/07/cheatsheet/_jcr_content/par/download/file), so it would a bit of work to reconcile both approaches.

    Hope there’s some info in there you can use.

    Cheers,
    Johannes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to browse my project's Subversion repository through its web front-end, but
Browse to a webpage with hyperlinks using IE (I am using IE7) Once on
Is it possible to browse the source code of OpenJDK online, just like I
I need to browse the DOM tree of a parsed HTML document. I'm using
Let's assume I browse a specific web page that uses JavaScript to update its
I can browse using the desktop browsers via ..localhost:54647/... and from windows mobile emulators
When using UIImagePickerController to browse a folder, I hope to customize UIImagePickerController as below
I want to browse ragecollection.com site using the j and k keys [similar to
I'd like to browse active classes in Django. I think I'd learn a lot
If i browse my site using http://localhost:8080/abc/Login/index.jsf , everything works fine. But if browse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.