jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Müller" <thomas.muel...@day.com>
Subject Re: Lookup to datasource to get DB url
Date Mon, 30 Jun 2008 15:40:21 GMT
Hi,

> However my main question is "How to do a lookup of a data  source" that
> contains the real url parameter.

I think Antonio has already answered this question: You can specify a
JNDI data source in the url parameter. Example:

<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
  <param name="driver" value="javax.naming.InitialContext"/>
  <param name="url" value="java:comp/env/jdbc/Test"/>
  <param name="schemaObjectPrefix" value="con_"/>
</PersistenceManager>

Regards,
Thomas

Mime
View raw message