Hi all,
I am following Sprign in Action 2.0 Though I am trying to read most of it, the problem is, the book does not have sample code, independent for each concept. It has a huge application called the Road Rantz, which if you try to configure, you end up getting annoyed as you never know what all jars it needs in it's build path. Also, you cannot touch the application unless you finish the comple book.
So far for chapters 1,2,4 I have been trying some sample independent code, targeted to the sections, as I read them. But chapter 5 onwards I am not able to do so. Like in chapter 5 for example, I am trying to use a
jdbc template and a DAO object, and the spring's jdbc classes, data source for these templates. But I am not sure what to do and in which class? The code so far I wrote is:
package com.springinaction.db;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
package com.springinaction.db;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
After I run this application I can see this on the console.
INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver I want to connect to HSQL, and I am aware of starting this database's server and opening the HSQL's database manager window to create tables.
I want to try out the template and the jdbc stuff in spring using the above design/setup. HAve I written code at the correct places? Also, what should be the url property's value in above XML. My
java application DbApplication is just going to insert a Employee object into the database, and read them
Please guide me on this.