Skip to content

Category Archives: Spring

Debugging Spring MVC Startup Errors In Tomcat

I’ve been getting startup errors trying to deploy this spring MVC application: SEVERE: Error listenerStart I can’t find the error in the logs since this is a container start up error. Here’s what I did: Prequisite: attach the spring src Put a breakpoint in the ContextLoaderListener: in the spring jar on the build path, find [...]

Testing JdbcTemplates with HSQLDB

I’m writing an application that’s going to perform some serious data munging with a database. The schema has been defined (mostly) but there’s no data I can use to test. For a short period of time I added my own data to the dev db server, but I found that it’s not reliable enough. It [...]

Spring JDBCTemplate Example

At my latest client engagement I’ve become the king of batch applications. Small, stand-alone applications run via a scheduler or a set of shell scripts that perform a heavy amount of data-munging. The problem with being assigned batch applications is that they’re never allocated much time in the project plan; in fact sometimes they’re not [...]

Clustering Quartz Jobs in Spring

This is the first time I’ve worked in a clustered environment. I haven’t found much in terms of easy documentation about how to cluster quartz with Spring. There’s actually a bit more to it than you might expect. Clustering quartz requires a JDBCJobstore, this persists information about jobs and triggers. Quartz defines two; JobStoreTX and [...]

Spring’s PropertyPlaceholderConfigurer

Dion has a nice post about Spring’s PropertyPlaceholderConfigurer class. This class allows you to pull information from a properties file and place it in your spring beans via expression language ${variable.name} conventions.

Wiring Quartz Beans in Spring

I’ve been working with batch processes a lot recently. While it’s not particularly exciting work, it is interesting in that they’re really independent applications, and as such you need to worry about releasing resources, managing memory, and other things that as an application developer you tend not to worry about. I’ve been using Quartz to [...]