Java

  • submit to reddit

Weekly Poll: In a World without Java. . .

Java is the bread and butter of many programmers on DZone. We don't think that a bakery strike would lead to mass starvation, though. We'd find something else...

0 replies - 1146 views - 10/14/12 by Bill Armstrong in Articles

Unexpected Java Float Precision Changes

I ran across a little gotcha today where a float value being inserted into another object container (JSONObject) was not holding the precision of the...

2 replies - 759 views - 10/14/12 by Mick Knutson in Articles

Play 2.0 Framework and XA Transactions

XA transactions are useful and out of the box, Play 2.0 today does not have support for them.  Here I show how to add that support: First off, some...

0 replies - 379 views - 10/14/12 by Ant Kutschera in Articles

Three Things Java Developers Should Know

Here is an interesting article for those of should who have been following remotely the JavaOne 2012 conference. A recent interview with the Java Champion...

0 replies - 1076 views - 10/14/12 by Pierre - Hugues... in Articles

Writing Geospatial Queries for MongoDB in Java

MongoDB supports 2-dimensional geospatial indexes. You can watch MongoSF (May 2011) presentation to understand it at a basic level. In this article, I will...

0 replies - 1695 views - 10/12/12 by Amresh Singh in Articles

Log4j Thread Deadlock - A Case Study

This case study describes the complete root cause analysis and resolution of an Apache Log4j thread race problem affecting a Weblogic Portal 10.0...

0 replies - 1559 views - 10/12/12 by Pierre - Hugues... in Articles

RateLimiter - Discovering Google Guava

RateLimiter class was recently added to Guava libraries (since 13.0) and it is already among my favourite tools. Have a look what the JavaDoc says: [...]...

1 replies - 1874 views - 10/12/12 by Tomasz Nurkiewicz in Articles

Redis pub/sub Using Spring

Continuing to discover the powerful set of Redis features, the one worth mentioning about is out of the box support of pub/sub messaging. Pub/Sub...

0 replies - 1111 views - 10/12/12 by Andriy Redko in Articles

Bug Fixing: To Estimate, or Not to Estimate: That is The Question

According to Steve McConnell in Code Complete (data from 1975-1992) most bugs don’t take long to fix. About 85% of errors can be fixed in less than a few...

0 replies - 2656 views - 10/12/12 by Jim Bird in Articles

Using Hudson/Jenkins to Diagnose that Intermittent Failure

I have been working on one of those intermittent bugs that just won't reproduce on my machine; but will reproduce intermittently on other machines while...

0 replies - 2008 views - 10/11/12 by Gerard Davison in Articles

Learn Eclipse Keyboard Shortcuts Easily

Using keyboard shortcuts can vastly increase your productivity. Instead of switching between keyboard and mouse all the times, trying to figure out where...

3 replies - 2282 views - 10/11/12 by Lukas Eder in Articles

Ecosystems Are Overrated

When Java first came out in the 1990'ies, features such as garbage collection and "write-once-deploy-anywhere" where killer features for...

3 replies - 956 views - 10/11/12 by Wille Faler in Articles

Eventing with Spring Framework

Spring Framework, since it’s inception, included an eventing mechanism which can be used for application-wide eventing. This eventing mechanism was...

2 replies - 1325 views - 10/11/12 by Yohan Liyanage in Articles

Have You Checked out the DZone Tech Library?

If you haven't had a chance (or didn't know about it), take a stroll over to DZone's tech library.  Our shelves are filled with Refcardz, Whitepapers,...

0 replies - 1274 views - 10/11/12 by Eric Genesky in Articles

Enhancing Spring Test Framework with beforeClass and afterClass setup

How to allow instance methods to run as JUnit BeforeClass behavior JUnit allows you to setup methods on the class level once before and after...

0 replies - 1378 views - 10/10/12 by Zemian Deng in Articles