• submit to reddit
Michael Mainguy06/09/12
8801 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
11465 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
4548 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
5479 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
2391 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
1990 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
2909 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
10285 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
19287 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
13218 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
4662 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
14933 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.

Pavel Bernshtam06/08/12
9739 views
1 replies

Using Spring Beans from Non-Spring Classes

In our software both rich client and server are using Spring. And we have a problem - how to use spring beans from regular classes inside a rich client (no servlet/application context there!), which are not spring beans.We had 2 ideas: 

Heath Kesler06/07/12
5073 views
1 replies

Handling ActiveMQ disconnects in Camel CXF Routes

What if you want to handle ActiveMQ disconnects in Camel CXF after X number of retries and let the client know there is a problem? Here's how...

Will Soprano06/07/12
4193 views
0 replies

Television News Search and Analysis with Lucene/Solr

This presenter explainsfrom the UCLA Com. studies explains the Lucene/Solr-powered seach engine. Its key points of linking search result text to the video at specific timestamps, counting word occurance, patterns, and grouping by month or show and using those to create interactive charts.