jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Harris" <michael.e.har...@gmail.com>
Subject Re: newb transient repository questions
Date Fri, 18 Jul 2008 14:40:16 GMT
hmm thanx -- I could have looked in the api for that....sorry

On Fri, Jul 18, 2008 at 10:33 AM, Alexander Klimetschek <aklimets@day.com>
wrote:

> On Fri, Jul 18, 2008 at 3:22 PM, Michael Harris
> <michael.e.harris@gmail.com> wrote:
> > So from advice received in another thread, I have a test environment that
> > uses a SimpleWebdavServlet extension running in jetty, which is embedded
> in
> > a test harness.  From that I can sort of list the contents of the
> > TransientRepo created by the Servlet.
> >
> > 1.  The TR goes away if its session is closed.  Is there any way to get a
> > session that needs to be explicitly closed?
>
> AFAIK it goes away if the last session is closed. You could keep a
> dummy session.
>
> > 2.  With a TR can I programmatically configure the repo root directory?
>
> TransientRepository repo = new
> TransientRepository("/path/to/repository.xml",
> "/path/to/repository-home");
>
> The second param is the repository home directory (if that is what you
> mean by root dir).
>
> Regards,
> Alex
>
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>



-- 
---------------------
Michael Harris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message