jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: RMIRemoteRepository to RepositoryImpl
Date Wed, 14 Jan 2009 16:18:39 GMT

On Wed, Jan 14, 2009 at 5:09 PM, Alessandro Cosenza
<alessandro.cosenza@itkey.it> wrote:
> my object is Repository rep = new RMIRemoteRepository(url);
> i have to change it to RepositoryImpl.
> i could need a cast but that's not correct.

You can't cast a RMI client to the RepositoryImpl class. What
Jackrabbit-specific functionality do you need? The RMI layer supports
the Jackrabbit-specific extension interfaces in jackrabbit-api, so you
can for example use the following to create a new workspace over an
RMI connection:

    Session session = rep.login(...);
    JackrabbitWorkspace workspace =
        (JackrabbitWorkspace) session.getWorkspace();

See the org.apache.jackrabbit.api documentation at
http://jackrabbit.apache.org/api/1.5/ for more details about the
extensions that a are available.


Jukka Zitting

View raw message