I am learning how to use a content repository and I am using Jackrabbit. I have a Spring 3.x application that I successfully have connected with the content repository. I read about deployment models (http://jackrabbit.apache.org/deployment-models.html) and I wonder what type of deployment model I use? I have installed Jackrabbit as a module in JBoss 7 server, but that is esentially the same as bundling the Jackrabbit lib with the application so I guess that I use the Application bundle model?
And then the next question: which option is preferred?
I am currently using this configuration: http://wiki.apache.org/jackrabbit/ExamplesPage
<bean id="repository" class="org.apache.jackrabbit.core.RepositoryImpl">
<constructor-arg index="0" ref="config" />
</bean>
<bean id="config" class="org.apache.jackrabbit.core.config.RepositoryConfig" factory-method="create">
<constructor-arg index="0" value="./repository.xml"/>
<constructor-arg index="1" value="." />
</bean>