Configuring Dev and Prod Environments in Spring 3.1

Recently I have been exploring the Spring MVC Framework using on Spring 3.1. Based on my Grails experience I was surprised by the amount of manual configuration that is required.  Nevertheless, I thought I would quickly share how to configure development and production environments in your application.  Spring 3.1 introduced what is known as Profiles, which allow the developer to create various bean definitions to be used in different environments.

For instance, in order to use a different database for your dev and prod environments you could configure your sevlet-context.xml file with the following:

Then in your web.xml file you would have the following if you were deploying for the dev environment:

It's just that simple...

Grails: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:hsqldb:mem:grailsDB'

Recently received the following error when attempting to deploy a new war file on my Glassfish server:
Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:hsqldb:mem:grailsDB'
The solution to the issue however, has nothing to do with MySQL and drivers whatsoever.  The problem was that I mistyped the environment name when creating the war file.

I typed grails rstaging war instead of grails staging war.  This is just another example of extremely useful error messages that I've encountered while developing for Grails.

First Android Application Released - Word Crank

So with all of the free time that I have (smirk), I managed to create an Android Game along with my brother, called Word Crank.  Word Crank is a simple, yet addictive game of creating words as letters fall from above.  Check it out and leave me feedback.  Thanks.