Spring for POJAs (Plain old java applications) - Revisited

by AlphaGeek
Thu, Oct 25, 2018

Back in the distant past, I wrote this article showing how to use spring to initialize a command line application. I used this technique often to create command line tools that could make use of many of the java components I built for web applications and other J2EE deployments. Now if you want to use Spring Framework in your applications you have many more options. I will start with something that is largely similar to what I presented in my 2006 article.

A Throttling CompletionService

by Dana H. P'Simer
Mon, Jun 8, 2009

The CompletionService interface defines a service that allows the caller to submit tasks to be completed in the future. A commonly used implementation is the ExecutorCompletionService, which uses an Executor to run the tasks that have been submitted.

Resin and Session Clustering

by Dana H. P'Simer
Wed, Apr 30, 2008

In a world where AJAX is becoming the norm instead of the exception we need technology platforms that allow us to scale these applications. I have been working on an application for a major hotel chain that is used by their call center agents to book reservations at their hotels. The application uses AJAX techniques to run several queries simultaneously and presents the data in a very dynamic interface that closely resembles a traditional desktop application. There are multiple tabs in many areas of the application that load data in the background so that it is available when the user wants to see it.

Acegi Filter Does Not Work in WebSphere

by Dana H. P'Simer
Tue, Feb 6, 2007

It seems there is a bug in WAS that was introduced with I found this forum post on the subject.

Java 1.5 Generic DAO

by Dana H. P'Simer
Fri, Oct 6, 2006

I am always looking for ways to limit the amount of typing I have to do. Hibernate helps me alot because I don’t have to write all the SQL and I can concentrate on the less tedious aspects of designing my persistence model. Spring helps me alot because I don’t have to write all those factories and other “glue” code.

Spring for Plain old Java Applications (POJAs)

by Dana H. P'Simer
Thu, Jul 13, 2006

Most J2EE developers have at least heard of the Spring framework and know that it is an excellent framework for creating enterprise applications. I have recently needed to create an application that runs from the command line and is short lived. It has no GUI but I wanted it to be configurable and extendable in various ways. To that end, I defined a bunch of interfaces for the objects in the system to use when interfacing with other objects. Then I started thinking about the implementations of these interfaces and the factory classes I would need to create. I said to myself “Self, doesn’t Spring already do this?” and I answered myself, “Why, yes”. So I decided to try it.