I can't answer a lot of what you ask about accessing the JCR in another webapp... etc - but I can talk about the DataSourcePersistenceManager and setting up a MySQL database backend - since I've spent some time working on getting my build process automated and getting this working reliably.

Here are some notes I have for you that may or may not be helpful. I'm being brief here, but if you need a better explanation let me know...

You DO create the file in ${CATALINA_HOME}/conf/<hostname>/ <webappname>.xml to get the DataSourcePersistenceManager working properly. (I've tried to put a context.xml inside the META-INF/ dir of the war file that had the same contents as what I put in the conf directory, but it didn't work for some reason)

What sucks about making that file manually is that when you undeploy the webapp for any reason, it will delete that file so you have to recreate it whenever you undeploy / redeploy.

I've taken to making my own custom war file where I include the DSPM in the WEB-INF/lib dir and include the dpsm search files in the repo- conf dirs, and include the properties in magnoliaAuthor and magnoliaPublic bootstrap files to use their respective dspm search files. It simplifys redeploying for me to the point where I just need to make sure to put that config file outside in the tomcat host directory.

I would put the mySQL jdbc driver in the lib directory too, but another webapp I'm running on my server uses it and we have it in the common libs directory.

Ryan

If you are building 3.0.3 (or whatever version) from scratch, you can run "mvn clean install -P webapp" and it will generate an exploded war and the war file in the magnolia directory
On Aug 29, 2007, at 12:52 AM, Pierrick Doreau wrote:

Hello,

I have few questions about the JCR interface in magnolia :
- How to store the repository on my Desktop (for exemple). I think the only thing I have to do is to change the repository home location in default/magnolia.properties. Is It right ? - Does magnolia use JNDI with the default configuration (ie with a fresh downloaded war) ? - How to access the magnolia repository with another webapp using tomcat JNDI (see jackrabbit model 2 : http://jackrabbit.apache.org/ doc/deploy/howto-model2.html). In other words, how to create a JCR connection pool (with a derby database). Please, can you describe the procedure for the magnolia webapp and the other webapp. Is it possible to add a ressource in the the server.xml (gloabalNamingRessource) specifying the jackrabbit-debery- search.xml as configFilePath ? - Is the file DataSourcePersistenceManager.jar (or JNDIPooledDatabasePersistenceManager.jar) needed to run magnolia in such configuration. - I have tried to build a test webapp based on the official jackrabbit tutorial (model 2). There is a class used to declare the ressource (org.apache.jackrabbit.core.jndi.BindableRepositoryFactory) which is not present on the version 1.3 of jackrabbit-core. When I try to configure the resource with the org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory classe, I get a ClassCastException - According to the apache tutorial, a snippet (Ressource link) is needed in server.xml or in conf/enginename...webapp.xml, ie outside of the webapp folder. How can magnolia access to JNDI if this snippet is not added ? (the wiki page http://www.magnolia.info/wiki/ Wiki.jsp?page=SettingUpMySQLRepositoryWithMagnolia3.1 does not mention it)

Thanks a lot in advance.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to