Category Archives: Java

Tempus library for programmatic thread dumps

Turns out doing a CTRL+Break (or equivalent kill <signal> <pid> on *nix) programmatically is a bit harder than I thought.  This thread talks about ways to do it, but the easiest was to use the Tempus library which has a … Continue reading

Posted in Java | Tagged , | Leave a comment

Embedding Tomcat 7 in your App

So what if you ship with a plain old Apache server just to run some aging PHP.  If you have an server app running all the time, according to this post, it looks like you can embed Tomcat, just like … Continue reading

Posted in Hosting, Java, Java EE | Tagged , | Leave a comment

Strings and intern

Strings, yawn, boring.  They are kinda the bread and butter of our development but lets face it, we can take em for granted sometimes. So some neat tips from this blog post about Strings in Java. The most useful one … Continue reading

Posted in Java | Tagged , , | Leave a comment

Legacy Java Systems

I’ve had my fair share of working with legacy code.  I don’t think legacy code is a bad thing because its existence means it has addressed the majority of the needs of the business successfully enough to stay around.  However, … Continue reading

Posted in Development Practice, Java | Tagged , | Leave a comment

UUID’s in Java

UUID’s are useful for making unique reference numbers of things.  In an ideal world these UUIDs are so long, they never collide. The first place to discuss UUIDs would be RFC 4122.  The next part would be the wikipedia entry … Continue reading

Posted in Java, Networking | Leave a comment

Lessons in Jasper (i)Reports

I had some great fun today playing around with iReport. I used Dynamic Jasper before iReport so it was an interesting experience seeing the platform first hand and seeing all the capabilities it offered via the properties panels in iReport … Continue reading

Posted in Java | Tagged | Leave a comment

Apache Commons reflectionHashCode builders

This was my response to this short post about using reflectionHashCode to implement your objects hashCode method dzone.com – overriding equals() and hashcode() – best practice I’ve come to love the Apache commons builders over the last couple of years … Continue reading

Posted in Java | Leave a comment

Hyperic HQU Monitoring

As a software dev who worked with an ISP, I learnt monitoring is a big thing.  Customers have availability metrics we need to meet, and more importantly customers are paying for a service.  When it goes down, they shouldnt have … Continue reading

Posted in Groovy, Java, Monitoring | Leave a comment

QtJambi – Qt for Java

My recent interest in Signals and Slots led me to a few other more detailed docs on the subject Signals and Slots – TrollTech Docs v4.6 QtJambi Docs – the Java spin of Qt Meet QtJambi QtJambi reference docs Qt … Continue reading

Posted in Java | Leave a comment

Lambdas are not closures

A λ (lambda) is an anonymous function. In addition to Closures, Oracle are looking at including lambdas in JDK 7, which would bring more functional goodness to the feature stagnant Java. This InfoQ article sums up the situation nicely.  It … Continue reading

Posted in Java | Leave a comment