• submit to reddit
Gerard Davison06/09/12
4365 views
1 replies

Off-loading test execution using Hudson/Jenkins: Part 2

Previously I have written about using Hudson to perform pre-flights using branches on source control systems; but sometimes you just have a patch file that you want to run your tests against.

Gerard Davison06/09/12
4596 views
1 replies

Try With Resources Refactoring That Isn't

So I was looking at refactoring some code to use the new try/with/resources construct and found that perhaps it is not as simple as it first appears.

Mike Christianson06/09/12
4516 views
2 replies

Incomplete Thoughts on Git

For the last week or so I’ve worked my way through about half of Pragmatic Version Control using Git with a mixture of excitement and terror. In random order, as it comes from my mind, are some thoughts:

Michael Mainguy06/09/12
8643 views
5 replies

How to Juice your Java Performance

Warning: this is a preoptimization. In my previous post about equals and hashcode I thought I'd point out how to redesign the class in question to make better use of performance.

Rob Terpilowski06/09/12
11231 views
0 replies

Migrating an Automated Deployment Script from Glassfish v2 to Glassfish v3

Just recently we attempted to update an Ant script which we are using to do automated deployments to Glassfish v2 servers, to deploy to our new Glassfish v3 servers instead. Here are some things we learned!

Heath Kesler06/08/12
4383 views
1 replies

Handling ActiveMQ disconnects in Camel CXF Routes: Part 2

So previously I showed you how to setup error handling when working with Activemq from a CXF endpoint. So that is fine, but what if you need ActiveMQ to be asynchronous?

Gerard Davison06/08/12
5360 views
1 replies

Off-loading Your Test Execution Using Hudson/Jenkins: Part1

One thing we do is for every main hudson job we create a copy just to run the tests for a particular developer. It solves the "it runs on my machine" dilemma and frees up the developer to get on with other work.

Rob Gordon06/08/12
2332 views
1 replies

An Oddjob Property in Spring

SpringJob can be given the name of any Runnable defined within Spring and it will run it. Any exceptions will be reflected in the state of SpringJob, and this can be used to trigger another job such as an email, or it can be used in a retry timer.

Jay Fields06/08/12
1927 views
1 replies

Clojure: Freezing Time in expectations

The current version of expectations (1.4.3) contains support for freezing time within an expectations scenario. I already put this information out in a previous blog entry, and I'm going to use the same examples here.

Gerard Davison06/08/12
2750 views
1 replies

Try with resource Context Classloaders

For various reasons I seem to end up writing a lot of code that fiddles with the context class loader in order to get non-module code running in the OSGi environment that JDeveloper runs in. This leads to a whole bunch of code that looks like this:

Dalip Mahal06/08/12
9305 views
1 replies

Polymorphism and Inheritance are Independent of Each Other

Flexible programs focus on polymorphism and not inheritance.  Some languages focus on static type checking (C++, Java, C#) which links the concepts and reduces polymorphic opportunities. Languages that separate the concepts can allow you to focus on...

Stoimen Popov06/08/12
18503 views
2 replies

Algorithm of the Week: Stack and Queue

The algorithm of the week is finally here! Introducing the Heapsort algorithm, which depends on a data structure called “heap”.

Mitch Pronschinske06/08/12
12938 views
13 replies

Poll: Do You Consider Groovy "Production Ready"?

We recently got a post on Javalobby from a new contributor, Pavel Bernshtam.  He wrote an explanation of why he thinks Groovy is a "Better Java".  I was initially going to see how everyone on JL felt about...

Tony Siciliani06/08/12
4232 views
2 replies

Android Persistence: Internal Storage

There are several alternatives for persisting data in Android. One of those is the use of the phone's internal file system, and under certain circumstances, it can turn out to be the developer's best option.

Pavel Bernshtam06/08/12
14538 views
11 replies

Groovy as "Better Java"

You can use groovy in different ways - for scripting, Grails, quick prototyping, creation of DSLs etc. But I like Groovy first of all as "better Java". Really, look - almost every Java code is valid Groovy code, i.e.