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



Storing the state of an activity of your Android application


This is the last post in my series about saving data in your Android application. The previous posts went over the various way to save data in your application: Introduction : How to save data in your Android application Saving data to a file in your Android application Saving preferences in your Android application Saving to a SQLite database in ...

Read More »

Using PouchDB for Offline/Data Sync


Recently the term “Mobile First” received additional notoriety as the new CEO of Microsoft proclaimed the company’s shift in focus. As I’ve been researching mobile frameworks lately, I’ve run across another term – “Offline First.” As much as you may be online with your mobile phone or tablet, inevitably there will be times when you’re not connected, but still need ...

Read More »

How To Return Error Details From REST APIs


The HTTP protocol uses status codes to return error information. This facility, while extremely useful, is too limited for many use cases. So how do we return more detailed information? There are basically two approaches we can take:         Use a dedicated media type that contains the error details Include the error details in the used media ...

Read More »

The Illusion of Control


Why do we keep trying to attain control? We don’t like uncertainty, and control over a piece of reality relaxes us. A controlled environment is good for our health. In fact, when we are in control we don’t need to do anything. Things work out by themselves, for our satisfaction, because we’re in control. Being in control means never having ...

Read More »

SBT AutoPlugins Tutorial


This tutorial will guide you through the process of writing your own sbt plugin. There are several reasons to do this and it’s really simple:                   Add customized build steps to your continuous integration process Provide default settings for different environments for various projects Before you start, make sure to have sbt ...

Read More »

Hibernate collections optimistic locking


Introduction Hibernate provides an optimistic locking mechanism to prevent lost updates even for long-conversations. In conjunction with an entity storage, spanning over multiple user requests (extended persistence context or detached entities) Hibernate can guarantee application-level repeatable-reads. The dirty checking mechanism detects entity state changes and increments the entity version. While basic property changes are always taken into consideration, Hibernate collections ...

Read More »

Spring Caching abstraction and Google Guava Cache


Spring provides a great out of the box support for caching expensive method calls. The caching abstraction is covered in a great detail here. My objective here is to cover one of the newer cache implementations that Spring now provides with 4.0+ version of the framework – using Google Guava Cache In brief, consider a service which has a few ...

Read More »

Tomcat to Wildfly: Configuring Database connectivity


This excerpt has been taken from the “From Tomcat to WildFly” book in which you’ll learn how to port your existing Tomcat architectures to WildFly, including both the server configuration and the applications running on the top of it. WildFly is a fully compliant Java Enterprise Edition 7 container with a much wider set of available services and options compared ...

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:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns