The Passionate Programmer

January 7th, 2010 by stevi | 1 comment

A few years ago, right about the time I learned my job was to be outsourced, I remember seeing a book in the bookstore titled My Job Went to India. I assumed it was a parody of sorts and decided to resist the urge to pick it up.
It wasn’t until I read the introduction [...]

Of ExceptionResolvers and XMLBeans

February 18th, 2009 by stevi | 12 comments

Using a custom ExceptionResolver in Spring Web Services to insert a Detail into a SoapFault.

SaveOrUpdate versus Merge in Hibernate

December 7th, 2008 by stevi | 23 comments

We all have those problems that we encounter just infrequently enough that when we see them again, we know we’ve solved this, but can’t remember how.
The NonUniqueObjectException thrown when using Session.saveOrUpdate() in Hibernate is one of mine. I’ll be adding new functionality to a complex application. All my unit tests work fine. Then in testing [...]

Annotation Mapping for Ordered Lists in Hibernate

October 20th, 2008 by stevi | 5 comments

Here’s another problem that has a simple solution that took me longer than I expected to find.
I am using Hibernate 3.2.5 as my ORM. In one case, I want to map a child collection of items as an ordered List, taking advantage of the database to do my ordering.
I’m using Annotations intead of the [...]

Finding selected checkbox items in a JSF dataTable

October 9th, 2008 by stevi | 17 comments

This is one of those problems that I couldn’t find a complete example for when I needed it, so hopefully this will save somebody else the extra time it took me to piece it together.
We frequently need to have data tables in our UI, and allow the user to select a subset of those items [...]

First actual case of bug being found

September 9th, 2008 by stevi | 1 comment

On September 9, 1947, the Harvard University Mark II Aiken Relay Calculator started having problems. The operators opened it up, and discovered a moth between the points of Relay #70, in Panel F. The moth was removed at taped into the log book with the comment “First actual case of bug being found.”
When told of [...]

How to configure a secure JMS connection using Spring

September 5th, 2008 by stevi | 0

In a comment to my previous post about configuring JMS via Spring, Vikas Kadam asked about configuring a connection to a secure TIBCO EMS topic or queue. As fate would have it, the next issue I dealt with was adding this to my own application. What worked for me was using Spring’s UserCredentialsConnectionFactoryAdapter as my [...]

Simplifying Spring’s JMS configuration for JndiTemplate

August 25th, 2008 by stevi | 9 comments

I’ve spent several days, off and on, wrestling with a chicken-and-egg configuration issue.
I have an application that uses Spring 2.0 and is deployed to Tomcat 5.5. We make heavy use of Tomcat’s JNDI for configuring things like our database connections.
We’re adding JMS functionality to our application; at this point, we merely need to send events [...]

Picking the right .NET Framework Version with Specific Reference

August 14th, 2008 by stevi | 1 comment

This morning I needed to work on a long-standing ASP.NET web application project. I haven’t had to run it locally for quite a while. I updated my source from TFS, cleaned and built the solution, and started the project in debug mode. After logging in, I went to a page, and was suddenly staring at [...]

How did you get started in software development?

June 24th, 2008 by stevi | 1 comment

Michael Eaton asks: how did you get started in software development, and I’m answering.
How old were you when you started programming? I’m another late bloomer. I remember having access to an early edition Macintosh for a short period when I was 13 or so, but it didn’t take. I didn’t really start programming until [...]