Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 15896 invoked from network); 5 Jun 2008 17:57:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 17:57:59 -0000 Received: (qmail 57076 invoked by uid 500); 5 Jun 2008 17:57:59 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 57002 invoked by uid 500); 5 Jun 2008 17:57:59 -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 56991 invoked by uid 99); 5 Jun 2008 17:57:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 10:57:59 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.172.157.102] (HELO smtp02.lnh.mail.rcn.net) (207.172.157.102) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 17:57:08 +0000 Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 05 Jun 2008 13:57:23 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id JZO76114; Thu, 5 Jun 2008 13:57:20 -0400 (EDT) Received: from 146-115-34-66.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO [10.0.10.88]) ([146.115.34.66]) by smtp01.lnh.mail.rcn.net with ESMTP; 05 Jun 2008 13:57:08 -0400 Subject: Re: Database connection by cocoon 2.2 From: Boris Goldowsky To: users@cocoon.apache.org In-Reply-To: <4848155F.5010607@memocomp.de> References: <4848155F.5010607@memocomp.de> Content-Type: text/plain Date: Thu, 05 Jun 2008 13:57:06 -0400 Message-Id: <1212688626.22030.58.camel@ant.moxyledge.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-4.fc8) Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090205.48482903.00F1,ss=1,fgs=0, ip=207.172.4.11, so=2007-10-30 19:00:17, dmn=5.4.3/2008-02-01 X-Junkmail-IWF: false X-Virus-Checked: Checked by ClamAV on apache.org 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 On Thu, 2008-06-05 at 18:33 +0200, Johannes Hoechstaedter wrote: > Hi, > > I do my first experiences in cocoon, and want to create a database > webapplication which connects to a database. I did some first steps to a > database application. Is there a complete how to, to etablish a database > connection (for read and write access) by cocoon 2.2? > > What I already did: > > * I did all steps for a first cocoon application which are described in > http://cocoon.apache.org/2.2/1159_1_1.html . That works. > * The I added a file databases-driver.properties with the path of the > driver into META_INF/cocoon/properties, as described in the migration > guide (http://cocoon.apache.org/2.2/blocks/databases/1.0/1409_1_1.html). > * The I added the dependency for cocoon-databases-impl into my pom.xml > as described in the documentation about the block > http://cocoon.apache.org/2.2/blocks/databases/1.0/1437_1_1.html . > > But I have not managed to etablish a connection. > > There are some for me quite understandable descriptions for cocoon 2.1 > on http://cocoon.apache.org/2.1/developing/datasources.html . But I > don't know if these are good for 2.2. > > Maybe some more informations are necessary: The application should be > run on tomcat, and manage a connection to a mysql or oracle database. > > Thank you for every help in advance. > Johannes > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org