Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BEA710E5D for ; Thu, 22 Aug 2013 15:07:42 +0000 (UTC) Received: (qmail 78912 invoked by uid 500); 22 Aug 2013 15:07:42 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 78418 invoked by uid 500); 22 Aug 2013 15:07:37 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 78410 invoked by uid 99); 22 Aug 2013 15:07:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 15:07:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcel@frightanic.com designates 80.86.198.94 as permitted sender) Received: from [80.86.198.94] (HELO smtpgate71.genotec.ch) (80.86.198.94) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 15:07:31 +0000 Received: from [10.245.96.89] ([178.197.236.57]) by imp02.agrinet.ch with id Fr711m00F1Ez9Ze03r73U9; Thu, 22 Aug 2013 17:07:05 +0200 X-IMP-FROM: _________ X-IMP-AUTH_USERNAME: X-Original-IP: 178.197.236.57 Message-ID: <52162915.6080904@frightanic.com> Date: Thu, 22 Aug 2013 17:07:01 +0200 From: =?ISO-8859-1?Q?Marcel_St=F6r?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Replacement for JNDIDatabasePersistenceManager? References: <5214C281.9080502@frightanic.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 22.08.2013 15:13, Jeroen Reijn wrote: > The configuration looks like this: > > class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"> > > Indeed, thanks a lot! When I asked the search engine about org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager it turned up http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ#Bundle_Database_PM and from there I found http://wiki.apache.org/jackrabbit/UsingJNDIDataSource. -> "...support a JNDI data source in place of the JDBC driver and database URL" works just fine but it's certainly an ugly shortcut and everything but intuitive. There must be an 'instanceof' is 'isAssignable' somewhere in the source. Bingo... oaj.core.util.db.ConnectionFactory.createDataSource(): Class driverClass = getDriverClass(driver); if (driverClass != null && Context.class.isAssignableFrom(driverClass)) { ... } else { return getDriverDataSource(driverClass, url, user, password); } Cheers, Marcel -- Marcel St�r, http://frightanic.com Couchsurfing: http://www.couchsurfing.com/people/marcelstoer O< ascii ribbon campaign - stop html mail - www.asciiribbon.org