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

 

 

Java EE 8 MVC: Working with Path Parameters

java-interview-questions-answers

In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path parameters are a dynamic part of the request path and can be specified with the @Path annotation. For example: @Controller @Path("path-params") public class PathParamsController { @GET @Path("/date/{year}/{month}") public String pathParamDate(@PathParam("year") int year, @PathParam("month") ...

Read More »

How to Detect Slow Queries with jOOQ

jooq-2-logo

Just now, we implemented a nice little feature in jOOQ’s code generator: https://github.com/jOOQ/jOOQ/issues/4974 It detects whenever the jOOQ code generator runs a slow query to reverse engineer schema meta information. Why? In our development and integration test environment, we don’t have huge schemas with all the different performance edge cases put in place. For instance, we don’t have 5000 Oracle ...

Read More »

libgdx and Kotlin – Classes [2D Platformer Prototyping]

jetbrains-kotlin-logo

This post is a follow up of the libgdx and Kotlin post. I have decided to prototype a simple 2D platformer (along the lines of Star Assault from my early posts), but instead of Java, I am using and learning Kotlin along the way. For this tutorial, the project should be in its initial state from the previous post. A ...

Read More »

Spring Cloud Ribbon – Making a secured call

spring-interview-questions-answers

Something simple, but I struggled with this recently – I had to make a Netflix Ribbon based client call to a secured remote service. It turns out there are two ways to do this using Netflix Ribbon, I will demonstrate this through Spring Cloud’s excellent support for Ribbon library. In two previous blog posts I have touched on Spring Cloud ...

Read More »

Bet Super Bowl 50 Like A Boss with Apache Spark

apache-spark-logo

This time, it’s personal. Super Bowl 50 is being played at Levi’s Stadium in Santa Clara – within sight of many of the world’s most innovative technology companies, including MapR. It’s the Silicon Valley Super Bowl* so it only makes sense that this will be the most over-analyzed event in history (at least until the next big game). Big events ...

Read More »

JavaFX: TouchGesture Memory Leak?

javafx-logo

In one of my projects I was fighting with a memory leak the last couple of days (yes … “couple”) and I came to the conclusion that there might be an issue related to touch / scroll gestures. In the sample below I have two buttons. The first one creates a list view with one thousand rows, the second one ...

Read More »

Creating a proxy object using cglib

java-logo

In the previous post I was talking about the standard Java based proxy objects. These can be used when you want to have a method invocation handler on an object that implements an interface. The Java reflection proxy creation demands that you have an object that implements the interface. The object we want to proxy is out of our hand, ...

Read More »

Exception Handling in Spring RESTful Web Service

spring-interview-questions-answers

1. Introduction We might have been across some of the several ways by which we can handle exceptions in a RESTful web service application in Spring. In this article, we will try to explore the best approach we can take to achieve efficient exception handling. 2. Problem Statement Let’s create a simple application that will identify the employee name in the ...

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