Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 94343 invoked from network); 17 May 2010 15:27:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 15:27:54 -0000 Received: (qmail 14343 invoked by uid 500); 17 May 2010 15:27:54 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 14321 invoked by uid 500); 17 May 2010 15:27:54 -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 14292 invoked by uid 99); 17 May 2010 15:27:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:27:54 +0000 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justinedelson@gmail.com designates 209.85.221.182 as permitted sender) Received: from [209.85.221.182] (HELO mail-qy0-f182.google.com) (209.85.221.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:27:47 +0000 Received: by qyk12 with SMTP id 12so560339qyk.15 for ; Mon, 17 May 2010 08:27:26 -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:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ckVx5v1MKDk3yIHl2XSq/aRb00caGgr6MwDa/AxWqSU=; b=d6+fjXpM09oQy39aedYz3nL2HR/Bnv6NaWADu56WEzs+AQpcYe/r8na3AnfW4yPtR/ de0JOZxjMc2aWLqClOC7HisZDfPyeKImMn3whHd7IKQ4TSsbK4zY4IZVilyIY1ru1SPa 7YqkPv7uf5NFwFvKGPjeT16LjVBbpLifl6cMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=AlkeaXYGWTU+goSb/GNpCjZE6p+pVgMPG9NwylloybR9Nngikk13koCCocgcdMYlWd ypRWO9e2Z+MEEYdZEVgjsvVyvsTrfd8QqF4A00764t6FReddpizRG/HV0LPgkhLaSqU1 sXSKa8ihdLm+WlpC6a/jlLstjpXmg/+Tn9GYs= Received: by 10.224.79.75 with SMTP id o11mr2888365qak.195.1274110039912; Mon, 17 May 2010 08:27:19 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [68.198.85.78]) by mx.google.com with ESMTPS id 5sm10977024qwh.55.2010.05.17.08.27.17 (version=SSLv3 cipher=RC4-MD5); Mon, 17 May 2010 08:27:18 -0700 (PDT) Message-ID: <4BF16055.5020507@gmail.com> Date: Mon, 17 May 2010 11:27:17 -0400 From: Justin Edelson Reply-To: justin@justinedelson.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Sling or not Sling ? References: <201005171632.21646.herve.agnoux@diaam-informatique.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/17/10 11:20 AM, Bertrand Delacretaz wrote: > Hi, > > 2010/5/17 Hervé Agnoux : >> ...What is the benefit of Sling ? Have you develop web site with jackrabbit and >> with / without sling, and what is your impression ?... > > With Sling you "just" have to write request processing scripts (in the > language of your choice: jsp, server-side javascript, jruby, etc. or > java servlets) and store them in specific locations in the repository > to implement your application. Sling provides a RESTful HTTP interface > out of the box, and you can easily customize it - it's a web framework > built on top of a JCR repository. > > With Jackrabbit only, you get the JCR API, but nothing in terms of > request handling, rendering etc. You'd have to write this or (more > likely) use the web framework of your choice. This is really a critical point. Sling is a web framework and, as such, is perhaps better compared with Spring MVC or Grails. Sling uses an entirely different paradigm than MVC-based frameworks. And whether this resource-driven paradigm works better than MVC is, to my mind, more a factor of the type of site/application than the display platform. Content-driven sites are an excellent match for Slin; I would not write a banking application with Sling. Justin > >> ...Is there something special for mobile web app in Sling ?... > > Not at the moment, but so-called "selectors" (multiple extensions like > .mobile.small.html) in Sling make it easy to select alternate > renderings. > > HTH, and see you on the Sling lists if you have more specific > questions about it. > -Bertrand