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

  • SEARCH
  • Home
  • 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 8071719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:46:46+00:00 2026-06-05T13:46:46+00:00

I have an OSGi-based, server side application that uses the filesystem to store scripts

  • 0

I have an OSGi-based, server side application that uses the filesystem to store scripts and configuration data.

In time, I’d like to move that application to ‘the cloud’, and that’s not going to work well with its current dependency to file system access.

What I’d like to do is insert a JCR layer into this application, so it will still work in the current situation (regular files on the local filesystem), but will pave the way to a cloud situation.

I did find a file connector in modeshape, but I ran into a pretty severe incompatibility with OSGi, which hasn’t been fixed. Besides, ModeShape pulls in LOTS of dependencies (about 6 MB, I think), which is a problem for me.

So I don’t see any options besides starting to hack my own JCR implementation, which I am reluctant to do.

Any ideas?

  • 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-06-05T13:46:47+00:00Added an answer on June 5, 2026 at 1:46 pm

    Although you wouldn’t be using JCR directly, using the Apache Sling ResourceProvider mechanism should allow you to move easily from filesystem to something else later, and it’s OSGi-friendly as Sling is 100% based on OSGi.

    You could start now by using Sling’s Filesystem resource provider ( http://sling.apache.org/site/accessing-filesystem-resources-extensionsfsresource.html ) and later move to your own custom ResourceProvider, as needed.

    The source code of the filesystem provider is at https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/fsresource – it’s quite simple code that can be used as an example for creating your own ResourceProvider.

    For your custom system the question would be how many Sling bundles you need to get that working – I don’t know off the top of my head but would suggest using the Sling Launchpad to find out, it launches a vanilla Sling system with lots of bundles that you won’t need, but you could try reducing it to the minimum that still allows the ResourceProvider mechanism to work.

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

Sidebar

Related Questions

I have a server application that consists of multiple OSGi bundles, some mine, some
Is there an OSGi like framework that is based on C/C++? I have plenty
I am trying to write an OSGi based desktop application. I have a Swing
I have an osgi application (in felix) with multiple bundles. There are some common
I have an OSGi application which has a command line interface and a GWT
I have been working on getting my OSGi application to run outside eclipse. It
I have a 3rd party JAR that I have converted to an OSGI bundle
Using Apache Felix, I have an OSGi component I've authored that wraps some middleware
I have a project that is build up from several OSGi bundles. One of
I have a Java application. I created a OSGi bundle and in Activator.start i

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.