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



Injecting authenticated user into Spring MVC @Controllers


Injecting injecting authenticated user into Spring MVC handler method can be done with @AuthenticationPrincipal annotation and AuthenticationPrincipalArgumentResolver that is an implementation of Spring MVS MethodArgumentResolver. AuthenticationPrincipalArgumentResolver is registered by default with web security configuration (e.g. when you enable security with @EnableWebSecurity). 1. Custom UserDetails Let’s assume we have our custom UserDetails implementation: import; import pl.codeleak.surveyapp.entities.Member; import java.util.Collection; public class ...

Read More »

The Right To Be Forgotten In Your Application


You’ve probably heard about “the right to be forgotten” according to which Google has to delete search results about you, if you ask them to. According to a new General Data Protection Regulation of the EU, the right to be forgotten means that a data subject (user) can request the deletion of his data from any data controller (which includes ...

Read More »

Negotiation for Contract-To-Hire Jobs


I was recently asked a question on Reddit about a specific contract-to-hire (C2H) scenario that I hadn’t given much thought to recently. With the prevalence of C2H (sometimes called ‘try before you buy’ in the recruiting world) in the market today, I thought the topic was worthy of full exploration. What Is Contract-to-hire? For those unfamiliar, contract-to-hire is where a ...

Read More »

Apache NetBeans?


It’s fairly common to have significant announcements related to the world of Java released in the days and weeks leading up to JavaOne. With that in mind, it’s not surprising that we’re seeing some significant Java-related announcements just prior to JavaOne 2016 that begins next week. One announcement is Mark Reinhold‘s Proposed schedule change for JDK 9 in which Reinhold ...

Read More »

Conclusion: Agile & ERP, part 5


The story so far… Agile & ERP? The Good News about Agile & ERP ERP Culture v. Agile Culture Th Bad News about Agile & ERP Where does this leave us? For a modern software developer, who understand agile and is well versed in the current ways of working encountering an ERP system is like stepping back 20 or perhaps ...

Read More »

RabbitMQ retries using Spring Integration


I recently read about an approach to retry with RabbitMQ here and wanted to try a similar approach with Spring Integration, which provides an awesome set of integration abstractions. TL;DR the problem being solved is to retry a message(in case of failures in processing) a few times with a large delay between retries(say 10 mins +). The approach makes use of ...

Read More »

Microbenchmarking comes to Java 9


I have not written article here for a few months and this will also continue with this exception. I plan to return writing around next year March. Explanation at the end of the this article. Wait! Not exactly at the end, because you could just scroll down. It is somewhere towards the end of the article. Just read on! Three ...

Read More »

AutoCommit in PostgreSQL’s psql


One potential surprise for someone familiar with Oracle database‘s SQL*Plus when being introduced to PostgreSQL database‘s psql may be psql‘s default enabling of autocommit. This post provides an overview of psql’s handling of autocommit and some related nuances. By default, Oracle’s SQL*Plus command-line tool does not automatically commit DML statements and the operator must explicitly commit these statements as part ...

Read More »

Should you slap the next person selling you cloud-native?


Does the prospect of slapping someone get your attention, or is it the term cloud-native architectures? I would hope it is the last, but if not stay tuned. Let’s dig into why this terminology has become so clouded. Sorry for the pun, but that is what it is, taking age old problems and putting it into new exciting terminology. Let’s ...

Read More »

Rebutting 5 Common Stream Tropes


I’ve just finished reading “1 Exception To The Power of JDK 8 Collectors” and I have to say that I am pretty disappointed. Simon Ritter, Java champion, former Java evangelist at Oracle, and now Deputy CTO at Azul Systems (the guys with the cool JVM), wrote it so I expected some interesting insights into streams. Instead the post comes down ...

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