jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus" <cal...@gmx.net>
Subject RE: Jackrabit and webdav
Date Sat, 21 Jun 2008 12:44:17 GMT
Hi Paulo,

I think there are two approaches for a simple access to the repository
running in your default Jackrabbit-Tomcat installation:

1. Access the repository over the TransientRepository class from your client
- String configLocation = <Path to config - usually
- String repositoryLocation = <Path to config - usually
- Repository repository = new TransientRepository(configLocation,
- Session session = repository.login("admin", "admin");

Please note, that with this approach you can access the repository only with
either your client OR the web application. Which means, tomcat must not be
running while you access it with your application.

2. Access the repository over JNDI within another webapplication:
- This needs a little extra Tomcat configuration and is briefly described in


-----Original Message-----
From: Paulo Sergio [mailto:pauloslf@gmail.com] 
Sent: Saturday, June 21, 2008 2:13 PM
To: users@jackrabbit.apache.org
Subject: Re: Jackrabit and webdav

Hi guys,
thanks for all the answers,
i gues i have a problem i have to fix before these one, as i said i pretty
new to jcr and i seem to have missed a point.
when i run the client it creates a new repository and does not use the one
running on tomcat (i assumes it was using localhost as default)

so first problem is making the client program "talk " with the repository in
tomcat..  any directions in order to achive this?

thanks for helping..

paulo f.
On Sat, Jun 21, 2008 at 10:09 AM, Bertrand Delacretaz <
bdelacretaz@apache.org> wrote:

> Hi Paulo,
> On Sat, Jun 21, 2008 at 9:49 AM, Paulo Sergio <pauloslf@gmail.com> wrote:
> > ...is there any place where i can get examples of that code?...
> There's an example in Sling's Loader class [1], look at the createFile()
> method.
> (there are also examples in Jackrabbit but I'm less familiar with that
> code).
> -Bertrand
> [1]

View raw message