Hello everyone,

i am having a little trouble with the RMI setup.

For development i had the Repository localy on my machine. So i had the beans set up like in chapter 10 of the documentation :
Code:
<!-- normal repository -->

<bean id="repository" class="org.springmodules.jcr.jackrabbit.RepositoryFactoryBean">
<!-- normal factory beans params -->
<property name="configuration" value="/org/springmodules/jcr/jackrabbit/jackrabbit-repo.xml" />
<!-- use the target folder which will be cleaned -->
<property name="homeDir" value="file:./target/repo" />
</bean>


<!-- rmi server -->

<!-- use Spring's RMI classes to retrieve the RMI registry -->
<bean id="rmiRegistry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean"/>
<bean id="rmiServer" class="org.springmodules.jcr.jackrabbit.RmiServerRepositoryFactoryBean">
<property name="repository" ref="repository"/>
<property name="remoteAdapterFactory">
<bean class="org.apache.jackrabbit.rmi.server.ServerAdapterFactory"/>
</property>
<property name="registry" ref="rmiRegistry"/>
<property name="rmiName" value="jackrabbit"/>
</bean>

<!-- rmi client -->

<bean id="rmiClientFactory" class="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"/>
<bean id="rmiClient" factory-bean="rmiClientFactory" factory-method="getRepository"
depends-on="rmiServer">
<constructor-arg value="rmi://localhost:1099/jackrabbit"/>
</bean>
now that i am done with the application i would like to put the repository on a different server than the application.

Now i cant figure out how to remove the repository and server dependencies i have in that bean setup shown above.

Can anyone help me out and show me a bean setup that i could use for a remote Repository?

Thx a lot for any hints you guys can share!