jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "UsingJNDIDataSource" by ThomasMueller
Date Thu, 17 Jul 2008 20:47:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by ThomasMueller:
http://wiki.apache.org/jackrabbit/UsingJNDIDataSource

New page:
= How to use a JNDI `DataSource` =

Both the bundle database persistence manager and the database data store support JNDI data
sources. Here is how you can configure those two using data sources:

{{{
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
  <param name="driver" value="javax.naming.InitialContext"/>
  <param name="url" value="java:comp/env/jdbc/DataStore"/>
  <param name="databaseType" value="postgresql"/>
</DataStore>
}}} 


{{{
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
  <param name="driver" value="javax.naming.InitialContext"/>
  <param name="url" value="java:comp/env/jdbc/Workspaces"/>
  <param name="schemaObjectPrefix" value="${wsp.name}_"/>
  <param name="schema" value="postgresql"/>
</PersistenceManager>
}}} 

Please note that 'schema' in the persistence manager has the meaning of 'database type'.

Mime
View raw message