This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Getting started with Spring
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
I started pulling together some code today that will eventually become the reference architecture for a new project I started work on a couple of weeks ago. The technology stack and architecture are pretty much decided, but I wanted to do a RUP style executable reference architecture to flesh out some of the lower level details and prove the architecture performs/scales as we expect it will.
To start out, I sketched up a quick UML diagram of the key classes (with Visio) and then fired up Eclipse to start building them. I had a key use case in mind when starting out, so this was the first thing I tested out, courtesy of a simple main method that instantiated the classes in the right order and called a couple of methods. Once this all worked, it was a simple matter of grabbing a sample config and wiring those same beans together using Spring.
From start to finish, this didn't take more than a few hours and it's really rewarding to have a configurable, pluggable application up and running within these sorts of timescales. This is the third project where I've used Spring but I started with nothing more than the standard 1.2.x download and Eclipse. While it's debatable whether Spring makes Java EE development easier, you can't deny that Spring IoC is incredibly easy to get going.