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

 

On Java 8’s introduction of Optional

java-logo

I had recently discovered the JDK 8′s addition of the Optional type. The Optional type is a way to avoid NullPointerException, as API consumers that get Optional return values from methods are “forced” to perform “presence” checks in order to consume their actual return value. More details can be seen in the Javadoc. A very interesting further read can be ...

Read More »

Spring JpaRepository Example (In-Memory)

spring-interview-questions-answers

This post describes a simple Spring JpaRepository example using an in memory HSQL database. The code example is available from GitHub in the Spring-JpaRepository directory. It is based on the Spring-MVC-With-Annotations example and information available here. JPA Repository We implement a dummy bean for this example:       @Entity @AutoProperty public class SomeItem { @Id @GeneratedValue(strategy=GenerationType.AUTO) private long Id; ...

Read More »

SuperMan bound by Java Monitors

java-logo

Its a dark time in the life of Super Man. Jor-El wants him to go on a voyage to prepare him for his ultimate destiny. Yet the Earth is faced with dooms-day and the Justice League needs their Man of Steel in action to save the world. But you cant do both at the same time since we have just ...

Read More »

How Hadoop Works? HDFS case study

apache-hadoop-hdfs-logo

The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect ...

Read More »

Install, setup and start MongoDB on Windows

mongodb-logo

This post will provide the full path from downloading required binary archive/package for particular Windows version to starting up MongoDB in various ways. Following are the high level steps: Download the MongoDB binary archive Extract MongoDB archive Setup up configuration parameters and start/stop MongoDB using command line using windows services   Download the MongoDB binary archive For Windows platform, MongoDB distributes zip archive. Go to following downloads ...

Read More »

There is no application server

java-interview-questions-answers

We have recently posted data about application server market share we gathered from the free Plumbr deployments. And it resonated well – via different channels we got hundreds of comments and opinions on how to interpret the data. But one of the arguments in its different forms was constantly being made through every channel. Whether it took the form of ...

Read More »

How deep is your code?

software-development-2-logo

Dependency tuples. Picture your code. Picture all those functions on which there are no source-code dependencies. That might sound odd: if there are no source-code dependencies on a function then what is its purpose? Well, we must distinguish between compile-time dependencies and run-time dependencies. True, all entities at run-time must be called by other run-time entities: it’s turtles all the ...

Read More »

JavaEE 7 with GlassFish on Eclipse Juno

oracle-glassfish-logo

Java EE 7 is hot. The first four JSRs passed the final approval ballot recently and GlassFish 4 reached promoted build 83 in the meantime. If you are following my blog you know, that I do most of my work with NetBeans. But I indeed recognize, that there are other IDE users out there which also have a valid right of ...

Read More »

WatchService combined with Akka actors

akka-logo

WatchService is a handy class that can notify you about any file system changes (create/update/delete of file) in a given set of directories. It is described nicely in the official documentation so I won’t write another introduction tutorial. Instead we will try to combine it with Akka to provide fully asynchronous, non-blocking file system changes notification mechanism. And we will ...

Read More »

Spring Java Configuration

spring-interview-questions-answers

I have found that a lot of Spring developers I know still do not know about or use Spring Java Configuration (aka JavaConfig). Spring 3.0 introduced this feature which allows Spring to be configured entirely in Java – no more XML!! I really enjoy using JavaConfig because, well… it’s Java! This means it has all the benefits of Java type-safety ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close