jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Ried <FlorianR...@gmx.de>
Subject Re: JackRabbit as Shared J2EE Resource
Date Fri, 10 Jun 2005 16:04:52 GMT


Jukka Zitting wrote:

> Hi,
>
> Florian Ried wrote:
>
>>    <!-- Global Repository -->
>>    <Resource name="jcr/globalRepository"
>>          auth="Container"
>>          type="javax.jcr.Repository"
>>          
>> factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
>>          configFilePath="D:\repotest/repository.xml"
>>          repHomeDir="D:\repotest"/>
>
>
> I checked through the BindableRepositoryFactory source code [1] and 
> noticed that it doesn't instantiate the repository unless the resource 
> type is set to "org.apache.jackrabbit.core.jndi.BindableRepository" 
> (see line 60). Thus the instructions on the web are incorrect in 
> proposing to use "javax.jcr.Repository".
>
> Try changing your global configuration to:
>
>     <Resource name="jcr/globalRepository"
>           auth="Container"
>           type="org.apache.jackrabbit.core.jndi.BindableRepository"
>
> factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
>           configFilePath="D:\repotest/repository.xml"
>           repHomeDir="D:\repotest"/>


With org.apache.jackrabbit.core.jndi.BindableRepository it works 
perflectly. Thank you. My next step is to deploy Jackrabbit as 
Repository Server (see Deployment Model 3)

Mime
View raw message