Java, JSP, Servlet, JDBC - Back To The Basics Part 2By Angsuman Chakraborty, Gaea News Network
Monday, January 9, 2006
I informed in my previous post that I have decided to shun all java frameworks for my current project and develop with basic Java / J2SE components instead. Here is a synopsis of my journey as it is unfolding.
Today I was working with JDBC, doing the simple job of fetching certain data from the web and dumping them in the database. I have to tell you that Hibernate or at least iBatis sounded very alluring. But I have decided - no framework. So I wrote some simple code to fetch data from the web, parsed it and dumped in using plain old JDBC (JDBC 1.0). I was thinking of using connection pooling from JDBC 2.0, but frankly for my fetch and dump operation, it appeared to be overkill.
I got lot of work done today. The only dragging force was the constant temptation to use some framework or other. I resisted. It was refreshing. Hopefully from the next post I will start posting few bits and pieces of code, but frankly I have not using anything spectacular today - just plain old JDBC. Only thing worth noting was that I used a Proxy to allow me to login the database statements. I am using HSQLDB for this project. It can currently handle 8GB of data which is good enough for my needs.