As you all have probably heard, Velocity 1.5 was released last week. It is the first release of this project in last three years. This is certainly a long release cycle and it is not unusual that some people considered it a “dead project”. I have some projects that use Velocity as a template engine… Continue reading Velocity 1.5
Category: onJava
New Date/Time and Rest APIs for Java
There has been some very interesting activity in JCP land lately, namely acceptance of new Date and Time API (JSR 310) and proposal of the JavaTM API for RESTful Web Services (JSR 311). Usual first reactions to the JSR 310 that I saw on the web were “finally” or “too late”, but I think that… Continue reading New Date/Time and Rest APIs for Java
Singletons and lazy loading
Probably the first design pattern that every software developer learns is Singleton and lazy loading of Singleton classes. The usual example, goes something like this: public class Singleton { static Singleton instance; public static synchronized Singleton getInstance() { if (instance == null) instance == new Singleton(); return instance; } } The problem with this solution… Continue reading Singletons and lazy loading
Apache XML-RPC 3.0 – No thanks
I have this project that started years ago and still uses old Apache 1.1 version of the XML-RPC library. A few days ago I needed to add an extra functionality to the services it exposes. The underlying API for the new service works a lot with array of objects which is not friendly with that… Continue reading Apache XML-RPC 3.0 – No thanks
Playing with XFire
Every once in a while I get some WSDL file and a task to create a Java client (and a service for testing purposes) that will use a defined service. I’ve tried XFire a couple of times before (version was 1.1 in those days). But it never actually managed to create stub client and servers… Continue reading Playing with XFire
Retrotranslator
Reading this interview with Jean Elliott, director of product marketing for the Java SE platform at Sun Microsystems, got me into thinking about adoption of Java platform editions among developers (and plain users). I think that 1.4 is still very widely deployed runtime environment out there and that it is the main reason why many… Continue reading Retrotranslator
Spring and Flex
In this excellent article Christophe Coenraets gives few examples of how you can use Adobe Flex as a presentation layer for your Spring applications. It is good to see that my Spring middle-layer classes could be reused with one more presentation technology. I like to have options.
Jetty 6 and XBean
As you probably know, Jetty is a web server (and servlet container) written purely in Java. Because it is small, fast and has a well designed configuration API it is often used as a embedded server in various Java applications (Continuum, FishEye, …). Of course, when you use Jetty in a Spring-based application, you will… Continue reading Jetty 6 and XBean
Multiple table generator in Hibernate3
Some time ago I needed a unique identifier generator that will look up a value in a simple name-value kind of database table. Project’s database layer was based on Hibernate2 and since I couldn’t find such a solution I have implemented a MultiTableGenerator which I have blogged about here. The project was finished and I… Continue reading Multiple table generator in Hibernate3
Tomcat 5.x, Commons Logging and Log4J
First of all, I never use Jakarta Commons Logging (JCL) directly in my applications (Log4J is my tool of choice for logging tasks), but as you probably know many frameworks and libraries do all of their logging through JCL. In most cases you will want to catch some of these log messages, so that you… Continue reading Tomcat 5.x, Commons Logging and Log4J