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

 

 

JGroups: Leader election without additional infrastructure

java-interview-questions-answers

Hi there, in this post I’ll show how you can solve the problem of leader election without using any additional infrastructure like Apache Zookeeper or Consul. Leader election is a common way to solve the problem that in a distributed system only one instance must do a particular job. This could be for example triggering scheduled jobs coordinating connection establishment, when the ...

Read More »

The Librarian: Introduction to Test-Driven Development

software-development-2-logo

This will be a series of articles revolving around unit testing where I will work through examples and exploring various aspects of the craft. This is the first installment. The code associated with this article can be found on GitHub. Future and past installments can be found in The Librarian Archive. I will try to implement a few requirements for ...

Read More »

Product Owners and Learning, Part 3

agile-logo

Part 1 was about how the PO needs to see the big picture and develop the ranked backlog. Part 2 was about the learning that arises from small stories. This part is about ranking. If you specify deliverables in your big picture and small picture roadmaps, you have already done a gross form of ranking. You have already made the big ...

Read More »

Installing Java Application As a Windows Service

java-logo

It sounds like something you’d never need, but sometimes, when you distribute end-user software, you may need to install a java program as a Windows service. I had to do it because I developed a tool for civil servants to automatically convert and push their Excel files to the opendata portal of my country. The tool has to run periodically, ...

Read More »

Java 8: CompletableFuture vs Parallel Stream

java-logo

This post shows how Java 8’s CompletableFuture compares with parallel streams when peforming asynchronous computations. We will use the following class to model a long-running task: class MyTask { private final int duration; public MyTask(int duration) { this.duration = duration; } public int calculate() { System.out.println(Thread.currentThread().getName()); try { Thread.sleep(duration * 1000); } catch (final InterruptedException e) { throw new RuntimeException(e); ...

Read More »

OpenMap Tutorial 5 – 3-tier GIS application

java-logo

1. Introduction Welcome to the 5th tutorial of the OpenMap series of Tutorials.  OpenMap is a free open source Java GIS library. Here is a list of previous tutorials: In the first tutorial we created a basic OpenMap GIS application that displays a map with one shape layer, loaded from the filesystem, inside a JFrame. That tutorial was based on ...

Read More »

Lombok, AutoValue, and Immutables

java-logo

I liked Brandon‘s suggestion of a blog post comparing Project Lombok, AutoValue, and Immutables and this is a post that attempts to do that. I have covered Project Lombok, AutoValue, and Immutables individually with brief overviews, but this post is different in that it highlights the similarities and differences between them. Lombok, AutoValue, and Immutables share quite a bit in ...

Read More »

Functor and monad examples in plain Java

java-logo

This article was initially an appendix in our Reactive Programming with RxJava book. However introduction to monads, albeit very much related to reactive programming, didn’t suit very well. So I decided to take it out and publish separately as a blog post. I am aware that “my very own, half correct and half complete explanation of monads” is the new ...

Read More »

A Simple Web App with Spring Boot, Spring Security and Stormpath – in 15 Minutes

spring-interview-questions-answers

Building Identity Management, including authentication and authorization? Try Stormpath! Our REST API and robust Java SDK support can eliminate your security risk and can be implemented in minutes. Sign up, and never build auth again! UPDATE: We recently released a revision to our Stormpath Spring Security integration. You no longer have to inherit from a special Stormpath security configurer adapter. ...

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