You probably already have looked at it, but the documentation on springframework.org is actually very good (something for Cocoon to aspire to ;-) -- the section on database access is at http://static.springframework.org/spring/docs/2.5.x/reference/jdbc.html
You can certainly work with the Spring database API directly and not involve Hibernate if you so choose. We use Hibernate because we like to conceptualize a database as holding Java objects, not just tables of data. Bng On Fri, 2008-06-06 at 08:45 +0200, Derek Hohls wrote: > Bng > > It would be very useful if you, or anyone in the community, could identify or > recommend such tutorials - on a quick search I was not able to find > anything useful - although: > http://www.codesuccess.com/tutorials/spring/pagination/ > and > http://www.netbeans.org/kb/61/web/quickstart-webapps-spring.html > might be related. > > Not sure if there anyway of doing this with Spring alone - does one also > need Hibernate (more stuff to learn!!) > > Derek > > >>> On 2008/06/05 at 07:57, in message <[EMAIL PROTECTED]>, Boris Goldowsky > >>> <[EMAIL PROTECTED]> wrote: > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]