You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Nigel Sim <ni...@gmail.com> on 2009/07/30 03:34:02 UTC

Getting a URLRemoteRepository via JNDI

Hi,

I am trying to find the correct JNDI ObjectFactory to use to create
URLRemoteRepository connections. Normally I would use a
ClientRepositoryFactory (below), but this only supports RMI connections, and
in this situation I require the HTTP-RMI connection.

<Context>
    <Resource name="jcr/repository" auth="Container"
type="javax.jcr.Repository"

factory="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"
...>
</Context>

The URLRemoteRepositoryFactory which I've also seen mentioned does not work
as it doesn't implement ObjectFactory.

I'm using:
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-jcr-rmi</artifactId>
            <version>1.4</version>
        </dependency>

Cheers
Nigel