Java

  • submit to reddit

Java Trivia: the Double-Checked Locking Pattern

In most cases, it is sufficient to simply mark a lazy initialising method as synchronized. The following example can be found in the Wikipedia article about...

9 replies - 1846 views - 02/12/13 by Lukas Eder in Articles

Configuring Clustering in Quartz and Obsidian Schedulers

Job scheduling is used on many software projects to enable both internal jobs and third-party integration. Clustering can provide a huge boost to reliability...

0 replies - 1017 views - 02/12/13 by Carey Flichel in Articles

The Case for Spring Inner Beans

When code reviewing or pair programming, I’m always amazed by the following discrepancy. On one hand, 99% of developers conscientiously apply...

5 replies - 2962 views - 02/11/13 by Nicolas Frankel in Articles

The Principles of Java Application Performance Tuning

This is the fifth article in the series of "Become a Java GC Expert". In the first issue Understanding Java Garbage Collection we have learned about the...

0 replies - 6635 views - 02/11/13 by Esen Sagynov in Articles

Java 8: From PermGen to Metaspace

As you may be aware, the JDK 8 Early Access is now available for download. This allows Java developers to experiment with some of the new language...

4 replies - 23884 views - 02/11/13 by Pierre - Hugues... in Articles

Using Google Guava’s Ordering API

We’ve been playing a bit more with Google’s Guava library – what a great library! The most recent thing we used it for was to sort out the...

0 replies - 3102 views - 02/11/13 by Dan Haywood in Articles

Camel: Working with Email Attachments

If you're using the Camel-Mail component to handle some business logic that involves receiving email that contains attachments, then you might be...

0 replies - 1401 views - 02/11/13 by Jason Sherman in Articles

Message sequencing with Mule and JMS Message Groups

During my years on the Mule Community forum I’ve noticed that there are some problem areas that are more common than others. One recurring question, that I...

0 replies - 1098 views - 02/11/13 by Tomas Blohm in Articles

DZone Links You Don't Want To Miss (2/11/13)

IoC Containers Considered Harmful  Øyvind Bakksjø is a bit skeptical of where the Java community is heading.  Although he's completely fine with...

0 replies - 1769 views - 02/11/13 by Mitch Pronschinske in Articles

How To Dynamically Change a Web Service Endpoint URL with Metro

A really cool feature of GlassFish Metro (and maybe other webservice stacks) is the ability to change the webservice endpoint URL at runtime. In general, you...

1 replies - 1056 views - 02/08/13 by Ralf Quebbemann in Articles

ServiceMix: Remote JMX Connection

I recently came across an issue where I was was unable to make a remote JMX connection to an instance of Apache ServiceMix which was running on a remote Linux...

0 replies - 310 views - 02/08/13 by Jason Sherman in Articles

Why Shorter Methods Are Better

TL;DR Longer methods are more likely to need to change when the application changes. The Longer Story Shorter methods protect my investment in the code, in...

4 replies - 4423 views - 02/07/13 by Kevin Rutherford in Articles

Thursday Code Puzzler: Maximum Length Palindrome

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you...

14 replies - 2386 views - 02/07/13 by James Sugrue in Articles

DZone Links You Don't Want To Miss (2/7/13)

It's Better to Have Someone Else Copyedit Text, and It's Better to Have Others Test Your Code   Andrew Wulf shares wisdom about testing - it's not...

0 replies - 2623 views - 02/07/13 by Mitch Pronschinske in Articles

Feature Comparison of Java Job Schedulers – Plus One

Poor Oddjob, I thought as I read Craig Flichel’s Feature Comparison of Java Job Schedulers featuring Obsidian, Quartz, Cron4j and Spring. Yet again it...

0 replies - 1567 views - 02/06/13 by Rob Gordon in Articles