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 ....



MySQL error: Can’t connect to MySQL server


You may have stumbled on this MySQL error. If you have already seen this before, then it’s really easy to recognize this and fix it. But if you haven’t seen this error before, then it takes a little longer to troubleshoot the issue. I am listing down the steps to troubleshoot this issue.               ...

Read More »

The minimal configuration for testing Hibernate


Introduction In my previous post I announced my intention of creating a personal Hibernate course. The first thing to start with is a minimal testing configuration. The examples are relevant for Hibernate 4. You only need Hibernate In a real production environment you won’t use Hibernate alone, as you may integrate it in a JEE or Spring container. For testing ...

Read More »

An Introduction to Go – Elegance with Power and Simplicity


Whilst I usually try to stick with only `bread-butter` languages (i.e. php, python, java & C#), my last project involved the Google appengine web app written in Google’s own flagship Go language. Being a polyglot who is always intrigued by new languages, I couldn’t help being curious about how it was coding with Go, hence I took on the project. ...

Read More »

Open Session In View Design Tradeoffs


The Open Session in View (OSIV) pattern gives rise to different opinions in the Java development community. Let’s go over OSIV and some of the pros and cons of this pattern.   The problem The problem that OSIV solves is a mismatch between the Hibernate concept of session and it’s lifecycle and the way that many server-side view technologies work. ...

Read More »

Building a simple RESTful API with Spark


Disclaimer: This post is about the Java micro web framework named Spark and not about the data processing engine Apache Spark. In this blog post we will see how Spark can be used to build a simple web service. As mentioned in the disclaimer, Spark is a micro web framework for Java inspired by the Ruby framework Sinatra. Spark aims ...

Read More »

Spring/Hibernate improved SQL logging with log4jdbc


Hibernate provides SQL logging out of the box, but such logging only shows prepared statements, and not the actual SQL queries sent to the database. It also does not log the execution time of each query, which is useful for performance troubleshooting. This blog post will go over how to setup Hibernate query logging, and then compare it to the ...

Read More »

Beauty and strangeness of generics


Recently, I was preparing for my Oracle Certified Professional, Java SE 7 Programmer exam and I happened to encounter some rather strange-looking constructions in the realm of generics in Java. Nevertheless, I have also seen some clever and elegant pieces of code. I found these examples worth sharing not only because they can make your design choices easier and resulting code ...

Read More »

Really Understanding Javascript Closures


This post will explain in a simple way how Javascript Closures work. We will go over these topics and frequently asked questions: What is a Javascript Closure What is the reason behind the name ‘Closure’ Actually viewing closures in a debugger how to reason about closures while coding the most common pitfalls of it’s use     A Simple Example ...

Read More »

Performance Tuning of Spring/Hibernate Applications


For most typical Spring/Hibernate enterprise applications, the application performance depends almost entirely on the performance of it’s persistence layer. This post will go over how to confirm that we are in presence of a ‘database-bound’ application, and then walk through 7 frequently used ‘quick-win’ tips that can help improve application performance. How to confirm that an application is ‘database-bound’ To ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.