jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilhelmsen Tor Iver <TorIv...@arrive.no>
Subject Re: Jackrabbit on Glassfish: Exception when registering as JNDI resource jcr/Jackrabbit
Date Tue, 20 Apr 2010 08:32:29 GMT
> 	<bean id="jndi-repository"
> class="org.springframework.jndi.JndiObjectFactoryBean">
> 		<property name="jndiName" value="jcr/Jackrabbit" />
> 		<property name="proxyInterface"
> value="javax.jcr.Repository" />
> 	</bean>

Discovered that Jackrabbit prepends "jcr/" on its own accord, so 

jndi.name=Jackrabbit

in bootstrap.properties made the above Spring config work. (The portlet uses 1.5.x libraries
while the resource is 2.0, but I guess that works because 2.0 is a superset so the 1.x methods
that are proxied will exist.)

- Tor Iver

Mime
View raw message