Archive for the ‘onJava’ Category

Dealing with large code bases

If you haven’t already, be sure to read Steve Yegge’s post on his experience of dealing with large code bases (it’s a bit long post but an excellent read). He explains the maintenance nightmare of his 500.000 lines of code game written in Java and quite correctly concludes that code size is a crucial problem […]

Extension methods proposals

There’s a quite interesting discussion in the blogosphere about proposed extension methods feature for Java 7. The problem tackled by this proposal is how to extend an API (interface) with new methods without breaking existing implementations. The example used in a discussion is a List interface and the sort() method. In order to add another […]

Groovy StAX builder

I’ve always loved Groovy builders concept for handling (mostly creating) hierarchical documents. On the other hand I find StAX, pull-based processing API, to be one of my favorite methods for dealing with simple XML processing. It’s simple and fast, so what more can I ask for? Additionally, thanks to the Jettison project you can also […]

XStream and Spring OXM (Object/XML Mapping framework)

It all started when I tried to find a solution for customizing an XStream instance for my ActiveMQ XStream message transformer that would be better than currently used (extending a base transformer and providing a custom factory method that will do things like alias, converter, annotation, etc. settings). I wanted an easy solution to configure […]

Scripting API for everyone

I definitely think that dynamic languages for Java platform is an important topic. In that context, a Scripting API as a standardized scripting framework has its own role for Java developers. It is definitely a good thing it is included in JDK 6, but the lack of proper support for earlier JDK’s, in my opinion, […]

Asynchronous job execution

In software development we are often encouraged to decouple things in order to achieve greater flexibility in our code. So we decouple model objects from views, interfaces from their implementation, etc. Here, I would like to write about different kind of decoupling, front-end from back-end. In many cases, projects tend to depend on resources that […]

Eclipse Europa

On 29 June, Eclipse community will be richer for the new Europa release. It is a coordinate release of 21 Eclipse Foundation projects. The main component of this release is certainly new 3.3 version of the Eclipse Platform. Others include prominent projects from domains of administration, modeling, development and tools, such as Eclipse Communications Framework […]

Integrating ActiveMQ Web Console

If you build an application that integrates ActiveMQ broker, it makes sense that you want to integrate its web console as well. It provides your users with basic monitoring and management operations. One road you can take is to integrate it as a WAR archive, but as you already have a whole lot of ActiveMQ […]

(Not yet)Commons SSL

If you ever tried to work with SSL Socket connections in Java, you probably know that Java, by default, supports its own JKS and PKCS12 certificate formats. For those who need to work with OpenSSL it is usually suggested to convert keys and certificates to PKCS12 and then import them in the keystore using the […]

XStream 1.2.2

XStream 1.2.2 is released with JettisonMappedXmlDriver used for serialization and deserialization from JSON. It is the driver first presented in Java and JSON post. All modifications are submitted to Jettison and XStream projects respectfully and documented in an appropriate tutorial ( From now on, XStream has a full support for JSON serialization. Enjoy.