Hi,

On Wed, Jan 14, 2009 at 5:09 PM, Alessandro Cosenza
<[email protected]> 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();
    workspace.createWorkspace(...);

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.

BR,

Jukka Zitting

Reply via email to