Hi,

this sounds like you are constructing a repository for every
request. You should create the repository when your web application
starts and then create a session per request.

see also the webapp example:

https://github.com/apache/jackrabbit-oak/tree/trunk/oak-examples/webapp


Regards
 Marcel

On 01/03/16 12:37, "Enes Altınok" wrote:

>Hi,
>1.Now I start using SegmentNodeStore but I constantly get these warning
>messages:
>WARN [TarReader.java:443] Invalid graph metadata in tar file
>2.I have this case both for MongoDocumentStore and SegmentNodeStore:In my
>application, I serve files over a rest api.And while downloading big
>sized files(size over 100MB), if user closes the browser middle of the
>download, then connection is lost and causing input stream not  to close
>proparly.Then If I want to create a session  I get these errors:
>If I am using MongoDocumentStore:
>OakMerge0001: OakMerge0001: Failed to merge changes to the underlying
>store
>or if I am using SegmentNodeStore:
>java.nio.channels.OverlappingFileLockException
>Then I restart tomcat and everyting starts to work again.
>
>> From: [email protected]
>> To: [email protected]
>> Subject: Re: Repoistory connection
>> Date: Tue, 1 Mar 2016 10:19:51 +0000
>> 
>> Hi,
>> 
>> On 01/03/16 10:36, "Enes Altžnok" wrote:
>> >1.Is it possible to use SegmentNodeStore withoud osgi?
>> 
>> yes, see updated page on how to construct the repository:
>> 
>> http://jackrabbit.apache.org/oak/docs/construct.html
>> 
>> 
>> >2.Is there a sample code or project for the SegmentNodeStore
>> >implementation?
>> 
>> See above. There is also a standalone example you can
>> find here:
>> 
>>https://github.com/apache/jackrabbit-oak/tree/trunk/oak-examples/standalo
>>ne
>> 
>> 
>> >3.If we are talking about using oak as embedded and store as
>> >SegmentNodeStore, should I use jackrabbit but not oak.
>> 
>> The SegmentNodeStore is one of the backend options of Apache
>> Jackrabbit Oak.
>> 
>> When you write 'jackrabbit', I assume you are referring to the
>> old Jackrabbit 2.x version. This version is in maintenance mode
>> and for new projects, I suggest you use the new Oak implementation.
>> 
>> Regards
>>  Marcel
>> 
>                                         

Reply via email to