Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 64831 invoked from network); 4 Oct 2005 07:49:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2005 07:49:17 -0000 Received: (qmail 57094 invoked by uid 500); 4 Oct 2005 07:49:16 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 57079 invoked by uid 99); 4 Oct 2005 07:49:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 00:49:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.130.132.55] (HELO euros.telenet-ops.be) (195.130.132.55) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 00:49:18 -0700 Received: from hoboe1bl6.telenet-ops.be (hoboe1bl6.telenet-ops.be [195.130.136.38]) by euros.telenet-ops.be (Postfix) with ESMTP id 2DD1849A1A for ; Tue, 4 Oct 2005 09:33:04 +0200 (MEST) Received: from hoboe1bl6.telenet-ops.be (localhost.localdomain [127.0.0.1]) by hoboe1bl6.telenet-ops.be (Postfix) with ESMTP id B67C3388050 for ; Tue, 4 Oct 2005 09:33:04 +0200 (CEST) From: "maarten.volders@pandora.be" To: jackrabbit-dev@incubator.apache.org Importance: Normal Sensitivity: Normal Message-ID: X-Originating-IP: [194.78.192.23] Date: Tue, 04 Oct 2005 07:33:04 +0000 Subject: JCR + N-Tier architecture design issues: need some help MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm new to the JCR philosophy and also a little bit confused on how we sh= ould this new technology in an N-Tier architecture. I'm used on working w= ith Hibernate, pojo's and ORM mappings in this kind of environment and ha= ve the following questions about JCR implementations: Let's take for example a simple blogging website (that's seems to be the = "hello world" example for JCR :) ... ) - Is JCR only present behind the DAO layer or do the nodes and so travers= e through all layers - If the JCR in not shielded behind pojo's and the DAO, I find it difficu= lt to understand how we should expose JCR retrieved data? Should we use t= he JCR api also in the presentation layer ... i hope not!!! - If the JCR is indeed behind the DAO ... how do we go on from the DAO to= the presentation layer? Do we still use pojo, for example with a pojo ca= lled BlogMessage which have references to its parent and child BlogMessag= es? If so what is the best practise to create and update data that is cha= nged in these pojo's. I'm a little bit lost with the use of pojo's in com= bination with JCR!!! - What about transactions ... is that possible with JCR - If the JCR impl is backed by i.e. Hibernate ... how will the JCR data w= ill be saved. Is there still a ORM mapping behind the scenes or how is th= is done? So, it would be great that someone explains a real life example on how to= use JCR in an N-Tier architecture... Thanks M.