Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 41182 invoked from network); 11 Mar 2008 16:48:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2008 16:48:50 -0000 Received: (qmail 44845 invoked by uid 500); 11 Mar 2008 16:48:35 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 44818 invoked by uid 500); 11 Mar 2008 16:48:35 -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 44768 invoked by uid 99); 11 Mar 2008 16:48:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 09:48:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mkwhitacre@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 16:47:56 +0000 Received: by rn-out-0910.google.com with SMTP id s28so1793486rnb.13 for ; Tue, 11 Mar 2008 09:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=NgNHAenPTnroJjH4kTzQqqCIAsuScnrR/E4JulGsG50=; b=OtARniEeWxmh/SVVLXshaHVvDxM7nFvmfhqMAELUhGwmFz1B1gfZS/bLuyFZn5OeC7TWvL0YRV6dVJUTssMcGY2w6YdB/wPLi3w0FP6oCF0Q2G8/MOyF8NP/abd0AgFfOnHO9CHOkAQAp4ItLG5L08WpjR57db4k8t8zzZ0E6Vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=R3lS9DKLLvfRIo6DwCrJUV08uevkqjdSKZp2IkEbzacTGOMmb7ow+fv+5g2AfIqvqjpfE48UJiexlkn3i2AY6c8I1L/HsRzjGTkAqNHrCAs5HJKwRikq57b7nJL8J5rBSKBYbTOiLGEzoIJ/F0/2hc31CKRRuTiodaARuAOPKAs= Received: by 10.114.196.1 with SMTP id t1mr5100032waf.80.1205254082522; Tue, 11 Mar 2008 09:48:02 -0700 (PDT) Received: by 10.114.203.19 with HTTP; Tue, 11 Mar 2008 09:47:55 -0700 (PDT) Message-ID: Date: Tue, 11 Mar 2008 11:47:55 -0500 From: "Micah Whitacre" To: users@jackrabbit.apache.org Subject: Shared Datasource and DataStore solve concurrency problems? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4240_11497469.1205254082516" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4240_11497469.1205254082516 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey All, I'm currently using Jackrabbit and having some concurrency issues[1]. The project I'm working on is storing data in an Oracle database (though we are doing some testing with Derby just won't use in in a production environment). As the issue describes if I have two users making changes through different sessions which actually have two different repositories hitting the same database, I get NPE exceptions even though the users aren't making conflicting changes. From what I've read about Persistence Managers[3] and Clustering[2], I need to make sure that I'm using a shared data source. When I logged the bug I was using the db.DerbyPersistenceManager (in production we are using db.OraclePersistenceManager). I have since changed to using the bundle.OraclePersistenceManager as it is supposed to be faster. So the persistence manager in both cases are storing their changes in the database. Is this what people mean by using a shared data source. I haven't seen any form of definition or clarification on what that exactly means. The other question I have is what is the relationship between the data source and the DataStore[4]? I read that configuring a Datatore will improve the performance of the bundle PM. But will it also help alleviate my concurrency problems? Reading the mailing list I stumbled across reference to configuring the ISMLocking to solve some concurrency issues. So I have since configured both the workspace and versioning to use fine grained but that didn't alleviate my concurrency problems. anyone have any guidance on the issues/questions I'm having? Any help would be very appreciated. I've included my repository.xml file at the bottom if anyone sees something I haven't configured correctly. Micah [1] - https://issues.apache.org/jira/browse/JCR-1440 [2] - http://wiki.apache.org/jackrabbit/Clustering [3] - http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ [4] - http://wiki.apache.org/jackrabbit/DataStore Repository.xml file: ------=_Part_4240_11497469.1205254082516--