Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72958 invoked from network); 6 Jun 2008 12:27:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 12:27:43 -0000 Received: (qmail 49094 invoked by uid 500); 6 Jun 2008 12:27:43 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 49027 invoked by uid 500); 6 Jun 2008 12:27:43 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 49016 invoked by uid 99); 6 Jun 2008 12:27:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 05:27:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [146.64.10.166] (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 12:26:50 +0000 X-CSIR-MailScanner-Watermark: 1213359922.05323@lN3/V3fO9GiPNbZYoOnfeQ Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.14.2/8.14.2) with ESMTP id m56CPJfl004888 for ; Fri, 6 Jun 2008 14:25:21 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Fri, 06 Jun 2008 14:25:18 +0200 Message-Id: <484948C6.5CE9.00D4.0@csir.co.za> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Fri, 06 Jun 2008 14:25:11 +0200 From: "Derek Hohls" To: Subject: Re: Database connection by cocoon 2.2 References: <4849335C.5CE9.00D4.0@csir.co.za> <48492181.2080406@memocomp.de> In-Reply-To: <48492181.2080406@memocomp.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-CSIR-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m56CPJfl004888 X-CSIR-MailScanner: Found to be clean X-CSIR-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Johannes Just curious - is there a pressing reason to use 2.2? Why not download and work with 2.1 (which ships with the sample code you requested). Again, IMO, 2.2 still needs more work - esp. docs and simple examples - in making it accessible to the=20 "average" user.=20=20=20=20 Cheers Derek >>> On 2008/06/06 at 01:37, in message <48492181.2080406@memocomp.de>, Joha= nnes Hoechstaedter wrote: The linked sample is nice, and basically exactly what I am looking for. I have already searched on http://cocoon.apache.org/2.1/ on how I can=20 etablish a database connection. You need an entry int your web.xml and=20 in your cocoon.xconf for example. Where is the cocoon.xconf in 2.2?=20 Where can I define my datasources? Where can I get the code of the sample? Johannes Derek Hohls schrieb: > Johannes >=20=20 > Good question! The "official and best" way is to use Hibernate and=20 > Spring; > this will, IMO, mean writing *lots* of code. You can use flowscript=20 > instead, > for simple cases, but be warned that many here will point out the=20 > potential > flaws in this approach.=20 >=20=20 > In the 2.1.x series of Cocoon, there was a sample that showed this=20 > approach: > eg. see > http://cocoon.jsp ( http://cocoon.jsp/ )-servlet.net/samples/blocks/forms/ > and look for "Database access". >=20=20 > I am not sure if you will be able to replicate this in 2.2? >=20=20 > Derek >=20=20 > >>> On 2008/06/06 at 10:05, in message <4848EFB2.4090109@memocomp.de=20 > >, Johannes Hoechstaedter=20 > > wrote: > Good morning Bng, >=20=20 > I know, cocoon is based on spring. But isn't there another possibility > with cocoon blocks only? There is this database-block. What it is good > for, when I have to write my own spring application? I want to write as > less code as possible. >=20=20 > Johannes >=20=20 > > Johannes -- you may want to search for tutorials on using databases with > > Spring. My understanding is that with Cocoon 2.2 it is best to have > > Spring configure and manage any database connections. Then you can add > > Cocoon features (eg, the SQL transformer or whatever) once that is set > > up. > > > > Bng > >=20=20 >=20=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org=20 > > For additional commands, e-mail: users-help@cocoon.apache.org=20 > > > --=20 > This message is subject to the CSIR's copyright terms and conditions,=20 > e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at=20 > http://www.csir.co.za/disclaimer.html. > > > This message has been scanned for viruses and dangerous content by=20 > *MailScanner* , > and is believed to be clean. MailScanner thanks Transtec Computers=20 > for their support. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org=20 For additional commands, e-mail: users-help@cocoon.apache.org=20 --=20 This message is subject to the CSIR's copyright terms and conditions, e-mai= l legal notice, and implemented Open Document Format (ODF) standard.=20 The full disclaimer details can be found at http://www.csir.co.za/disclaime= r.html. This message has been scanned for viruses and dangerous content by MailScan= ner,=20 and is believed to be clean. MailScanner thanks Transtec Computers for the= ir support. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org