Tag Archives: Spring

Migrating a Spring Application from Tomcat 5 to GlassFish

I’ve got a Spring Web application that has been running happily on Tomcat for a while, but I wanted to migrate it to GlassFish. This proved a relatively simple process as only a couple of changes were needed to the … Continue reading

Posted in Java | Tagged , | Leave a comment

Using Spring for J2EE apps

There’s an interesting thread going on over at The Server Side based upon a comment made by Ugo Cei – “I seriously wonder why anyone would want to develop anything substantial in Java nowadays without using Spring.” Having done J2EE applications using … Continue reading

Posted in Java | Tagged , , | Leave a comment

Less “Crap Code”

I recently wrote about how developers don’t always clean up correctly when using databases after I read this blog. In my blog entry I suggested that developers could use a library (such as Spring) to help them close up database resources. Well, today I … Continue reading

Posted in Java | Tagged | Leave a comment

I Miss Dependancy Injection

I’ve just started working on a fairly small web application project that uses Struts as its web framework. I like Struts, its fairly simple to use and covers just about everything I need for my application. Since I’m now using … Continue reading

Posted in Java | Tagged , | Leave a comment

More on “Crap Code”

I read this blog recently and thought, “yes, that’s true”. I’ve seen a lot of code that has resource leaks because programmers don’t properly close database connections. This is one of the most compelling reasons to use something like Spring’s database classes – they … Continue reading

Posted in Java | Tagged | Leave a comment

How (not) to choose a web framework…

How do you know which web framework to use when starting a new project? It can be tricky and there are several factors which can influence your decision, such as support, learning curve, project standards etc. To help people choose … Continue reading

Posted in Java | Tagged , , | Leave a comment

Spring Connection Pooling with DBCP

Recently I wanted to add a connection pool to my Spring Web Application. I decided to use Commons DBCP to provide the connection pool as I’m using the Spring JDBC wrapper classes. Googling around didn’t find any examples of how … Continue reading

Posted in Java | Tagged , | Leave a comment

Book Review: Better, Faster, Lighter Java

Better, Faster, Lighter Java I’ve just finished reading this book by Bruce Tate and Justin Gehtland. Its one of the best books I’ve read for a long time and I thoroughly recommend it. The book begins by explaining how Java … Continue reading

Posted in Java | Tagged , | Leave a comment