Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Jackrabbit RMI support Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jackrabbit RMI support

    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 :
    <!-- 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" />
    <!-- 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 name="registry" ref="rmiRegistry"/>
    <property name="rmiName" value="jackrabbit"/>
    <!-- rmi client -->
    <bean id="rmiClientFactory" class="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"/>
    <bean id="rmiClient" factory-bean="rmiClientFactory" factory-method="getRepository"
    <constructor-arg value="rmi://localhost:1099/jackrabbit"/>
    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!