Hi Enes,

On 28/02/16 18:38, "Enes Altžnok" wrote:
>So:1. Do I have to call createRepository() every time or just for the
>first time and then use another method to connect repository.

You have to call this once when your application starts.
This will create the JCR Repository instance and initialize
the repository when you start it the first time.

>2. Is shuting down the repository needed?

It is not strictly needed, but recommended. A clean shutdown
ensures the next startup will be quick and no recovery is
needed.

Furthermore, based on your description that you would like
to embed Oak in your project, the SegmentNodeStore may be
more suitable. It stores the data of the repository on
your filesystem and does not require MongoDB.

Regards
 Marcel

Reply via email to