Hi, I didn't know about that. I have filed a bug for this problem: https://issues.apache.org/jira/browse/JCR-1305
I'm not sure yet when this will be fixed. Regards, Thomas On Jan 10, 2008 2:37 PM, Neubauer, Matthias <[EMAIL PROTECTED]> wrote: > Hi Thomas, > > We tried to use the BundleDbPersistenceManager with JNDI (as you > suggested), but we got a "java.lang.UnsupportedOperationException" from > the DataSource Object. We are using the > org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory, but the > BasicDataSource or PoolingDataSource do not support the method > getConnection (String, String), as it is used in: > > org.apache.jackrabbit.core.persistence.bundle.util.ConnectionFactory > 57: // JNDI context > Context context = (Context) d.newInstance(); > DataSource ds = (DataSource) context.lookup(url); > return ds.getConnection(user, password); > > It seems that we have to use another factory, but the only one that > appeared to be fitting was the > org.apache.commons.dbcp.datasources.SharedPoolDataSourceFactory for > which we got a null back from the lookup-method of the InitialContext > class, and ran into a NullPointerException. > > Also: Is there a similar class to BundleDbPersistenceManager to replace > the org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem, as we are > having the same problems according the connection loss with this class, > too. > > Best regards, > Matthias Neubauer >
