Created in: 2007-06-28 23:47:17
Author: martin
Size: 4542 bytes
Last updated: 2007-06-28 23:47:17
Here you will find information about how to install jLibrary client and server packages.
The following steps explain how to install jLibrary client. jLibrary, doesn't need a dedicated standalone server to run.
jLibray server comes bundled in a WAR file since jLibrary 1.1. Refer to your concrete application server to find how to install it. jLibrary 1.1 has successfully been tested with Tomcat 5.5.x, Tomcat 6.0.x, Apache Geronimo and Glassfish.
Once the jLibrary web application is deployed, it will be accesible from any jlibrary client using a jlibrary URL like this: http://localhost:8080. Note the change from previous versions in wich a jlibrary:// URL was used. If jLibrary is correctly installed then you should see the main jLibrary page.
The main configuration file is now located at webapps/jlibrary/WEB-INF/repository/repository.xml.
This is no more than Apache Jackrabbit configuration file. In that file you can
select where you want to storage repository content, where you want to store
repository version storage content, which persistence manager you want to use,
which document types you want to filter, etc.
For example, the default server distribution includes a persistence manager
like this one:
<PersistenceManager class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager"/>
If we want to use for example a MySQL database, we could change this for:
<PersistenceManager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost/jlibrary"/> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="${wsp.name}_"/> <param name="externalBLOBs" value="false"/> <param name="user" value="martin"/> <param name="password" value=""/> </PersistenceManager>
There is also many other ways to configure and fine tune jLibrary server. Checkout the Developement information to find more about this. Also be sure to check Apache Jackrabbit documentation.