Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

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.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Jackrabbit RMI support Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 :
    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!
Working...
X