From users-return-285-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Jun 20 20:35:18 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 80531 invoked from network); 20 Jun 2006 20:35:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 20:35:18 -0000 Received: (qmail 44954 invoked by uid 500); 20 Jun 2006 20:35:18 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 44824 invoked by uid 500); 20 Jun 2006 20:35:17 -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 44815 invoked by uid 99); 20 Jun 2006 20:35:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 13:35:17 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of danz8086@hotmail.com designates 65.54.174.48 as permitted sender) Received: from [65.54.174.48] (HELO hotmail.com) (65.54.174.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 13:35:15 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 20 Jun 2006 13:34:54 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Tue, 20 Jun 2006 20:34:51 GMT X-Originating-IP: [199.243.96.18] X-Originating-Email: [danz8086@hotmail.com] X-Sender: danz8086@hotmail.com From: "danz z" To: users@jackrabbit.apache.org Subject: questions on repository access model and transaction handling Date: Tue, 20 Jun 2006 20:34:51 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 20 Jun 2006 20:34:54.0640 (UTC) FILETIME=[FCFB9300:01C694A8] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I'm working on a web application that I expect to use Jackrabbit as the backend repository. This application has users and roles defined in an existing db2 database. It would be desireable to implement the repository access layer without discarding current user authorization mechanism. Question 1: is the following a valid access model for using JackRabbit? - A repository session-pool (e.g. use commons pool library) that needs only a sinlge admin id and password, this allows a fixed JAAS configuration that doesn't need further modification when user accounts change - A servlet relies on the above session pool to manipulate repository data - A user authorization module (for my app, already exists, just need some minor change) that controls access levels I've read the jcr specs but am unclear whether the repository.login method would return same session objects to, for example, multiple servlet calls in different threads (although with same user id and password). Question 2: I saw some posted code in the mail archive on using XSResource for transaction handling. Is there any way to use container managed transactions? Thanks in advance, D.Z _________________________________________________________________ Auto news & advice – check out Sympatico / MSN Autos http://en.autos.sympatico.msn.ca/Default.aspx