Running SQL install scripts can be tedious. They get so far, and then fail. Finding out where they failed isn’t always easy and when the problem is fixed, there is a choice – drop the schema and re-run, or comment out what has been applied already, and re-run. I once spent an entire morning in this fix/re-run cycle for a particularly large and badly maintained script. It was very ungratifying work. What I need, I thought, are some friendly green ticks, some positive visual feedback to aid job satisfaction.
Continue reading
Author Archives: rob
A Custom Property in Spring
<context:property-placeholder> is a really easy way to provide property replacements in Spring configurations with values from a standard Java Properties file. But what if you don’t want a property hard coded into a file – a clear text password for instance? Spring provides all the bits and pieces to write your own property replacement. Let me introduce my CustomPropertyConfigurer.
Continue reading
A Detour on the Road to Maven
I’ve been progressing quite nicely along my Road to Maven, that was until today when I tried to take a detour.
Continue reading
Another Take on Java Scheduling
While many are looking forward to the holidays, those that must support batch based applications may not be so enthusiastic as they anticipate the numerous support calls for jobs that failed because they shouldn’t have run or for jobs that should have run but didn’t. It was after one such lost long weekend a decade ago that I decided to have a go at writing my own scheduling system.
Continue reading
The Road To Maven
Maven is one of those projects I’ve looked at periodically over the years but I’ve never been persuaded by the payback of a learning curve that looks pretty steep from the bottom of a mound of XML. On my most recent day trip to Maven, however, I found a reason to stay.
Continue reading
Shapes Don’t Draw
Shapes don’t draw. The circle on the jotter next to me didn’t draw itself, I drew it – and it’s not very round! There’s a misconception (as advocated by many Object Orientated Programming 101 courses) that shapes draw. I believe this leads to some problem designs. Here’s one such example.
Continue reading
Hibernate – Please Don’t Deprecate Yourself
There are occasional wow moments in technology and I had one such moment in the summer of 2004 when I joined a project that was using Hibernate. In a matter of hours I was reading and writing beans and it was so effortless it seemed like magic.
Today I decided to take a look at Hibernate 4.1 and for several hours I have not been saying wow but why? and what? and worse…
Continue reading
The Smoke and Mirrors Behind Oddjob Drag And Drop
For those that read my last post on Oddjob’s server Drag n’Drop capabilities here’s the smoke and mirrors, sorry configuration, behind the trick.
Continue reading
Why I Wrote Yet Another Java Bean Framework
With so many Java Bean XML and dependency injection frameworks out there – did I really need to write another? Am I suffering from some terrible ‘Not Invented Here’ syndrome? In this post I’m hoping to persuade myself that I’m not, and hopefully I can persuade you that it might be worth a look too.
Continue reading
Passing a Parameter from Oddjob to Spring Batch
I wrote previously about scheduling a Spring Batch application from Oddjob. Here I’ll demonstrate how to pass the scheduled date, as a parameter, from Oddjob to Spring Batch.
Continue reading