Just to be sure I understand what you are looking for. You are looking
for a Java based API to access data, but you don't want to use
java.io.File and java.io.FileInputStream, but still you would like to
have the data on a regular filesystem, right?

If so, then you might also want to try

https://github.com/wyona/yarep

which basically allows something like the following

Repository repo = new RepositoryFactory().newRepository("vfs-example", new 
File("/home/alice/vfs-example-repository-config.xml"));
Node node = repo.getNode("/hello/world.txt");
InputStream in = repo.getInputStream();

whereas the repository configuration could look like for example

https://github.com/wyona/yarep/blob/master/src/test/repository/new-vfs-example/repository.xml

and then there is a 1:1 mapping to the data

https://github.com/wyona/yarep/tree/master/src/test/repository/new-vfs-example/content

HTH

Michael


Am 05.12.13 18:28, schrieb R. van Twisk:
>> Thanks Jukka,
>>
>> unfortunately it is not acceptable for our customers. They want to be able
>> to read files without Jackrabbit.
>
> I never tried this myself, but I think what Jukka means is that you need to 
> use webdav to mount it..
> So you simple mount your Jackrabbit store as if it’s just some external disk 
> see : http://savannah.nongnu.org/projects/davfs2
> This way your client doesn’t know better than that the file are stored on 
> disk.
>
> Google is your friend to, it gave me this link : 
> http://mail-archives.apache.org/mod_mbox/jackrabbit-users/200811.mbox/%[email protected]%3E
>
>
>> Best regards
>>
>>
>> 2013/12/5 Jukka Zitting <[email protected]>
>>
>>> Hi,
>>>
>>> On Wed, Dec 4, 2013 at 10:48 AM, danisevsky <[email protected]> wrote:
>>>> But we need exactly the same structure like is in JCR, e.g:
>>>> 2013/vacation/bhutan/DSC01322.jpg
>>>>
>>>> Is this reachable using Jackrabbit?
>>> Yes. The way to do this is to mount the Jackrabbit repository as a
>>> network disk using the WebDAV layer.
>>>
>>> BR,
>>>
>>> Jukka Zitting
>>>

Reply via email to