Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Six things I learned for software localization

software-development-2-logo

This blog post is a personal compilation of six technology independent things I learned in the past months about software localization. A few weeks ago we finally went live with our application supporting 22 different languages. As a German development team working for a German customer we used German as our base language within the application. Our customer was responsible ...

Read More »

3 ways of handling exceptions in JUnit. Which one to choose?

junit-logo

In JUnit there are 3 popular ways of handling exceptions in your test code: try-catch idiom With JUnit rule With annotation Which one should we use and when? try-catch idiom This idiom is one of the most popular one, because it was used already in JUnit 3. @Test public void throwsExceptionWhenNegativeNumbersAreGiven() { try { calculator.add("-1,-2,3"); fail("Should throw an exception if ...

Read More »

Surfacing Hidden Design: Seeking A Better Alternative To Interrelated Mutable Fields

scala-logo

What is better, a bunch of mutable boolean fields and methods operating on them, or an explicit expression of the individual states and transitions between them? Lets study an example from a simulation of the progression of a multi-stage infection. 1. Design hidden in primitive mutable fields and methods The following class, with a number of interrelated mutable (public) fields, ...

Read More »

Save-and-Refresh With Java Web Projects

java-interview-questions-answers

How do you configure your machine in order to have save-and-refresh for Java web projects? When you ask this question to developers, the answer starts with “oh, well…”, and continues with a description of something that sort-of works. And everyone has his own way. First – why do you need this? Because doing copying and restarting the server is a ...

Read More »

Configuring MySQL for ADF development

mysql-logo

Hi all. Today I’m going to show you how to configure MySQL database for Oracle ADF development. IMHO when you are using ADF with other databases rather than Oracle DB you won’t be able to use the full power of Oracle ADF and sometimes you’ll find yourself looking for workarounds in order to achieve some behavior that with Oracle DB ...

Read More »

Applying the 80:20 Rule in Software Development

software-development-2-logo

Managers don’t want to think harder than they have to. They like simple rules of thumb, quick and straightforward ways of looking at problems and getting pointed in the right direction. The simpler, the better. One of the most useful rules of thumb is the 80:20 rule: 80% of effects come from 20% of causes and 80% of results come ...

Read More »

Java: Schedule a job to run on a time interval

neo4j-logo

Recently I’ve spent some time building a set of tests around rolling upgrades between Neo4j versions and as part of that I wanted to log the state of the cluster as the upgrade was happening. The main thread of the test blocks waiting until the upgrade is done so I wanted to log on another thread every few seconds. Alistair ...

Read More »

Camel CXF Service With Multiple Query Parameters

apache-camel-logo

While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here’s a workaround. Hopefully, this post will become obsolete with the next versions of Camel. (Currently, I use 2.7.5) Problem Query parameters more than 1 is passed as a null value into a Camel-CXF service. Say, if the URL has four query ...

Read More »

Optimistic locking retry with MongoDB

mongodb-logo

In my previous post I talked about the benefit of employing optimistic locking for MongoDB batch processors. As I wrote before, the optimistic locking exception is a recoverable one, as long as we fetch the latest Entity, we update and save it. Because we are using MongoDB we don’t have to worry about local or XA transactions. In a future ...

Read More »

Groovy’s magical NullObject

groovy-logo

In this post I am going to explain some not that obvious differences of null in Java and null in Groovy. Let’s start with the following line:               Object o = null This statement works fine in Java and Groovy (except that Java requires a semicolon at line end). However, it has slightly different ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials