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

 

 

Five Features to Make Java Even Better

I stumbled upon this proposal by Brian Goetz for data classes in Java, and immediately realized that I too have a few ideas about how to make Java better as a language. I actually have many of them, but this is a short list of the five most important.                 Global Variables. There ...

Read More »

WildFly Kubernetes exec probes

Liveness and readiness probes tell Kubernetes whether a pod is running and ready to do some work. An enterprise application can probe the status of an application via HTTP. If no HTTP endpoint is exposed Kubernetes can also probe by executing commands. WildFly ships with the useful jboss-cli.sh. This CLI retrieves information about the server and deployment states as follows: ...

Read More »

Jersey client dependencies for JAX-RS 2.1

java-interview-questions-answers

Jersey is the reference implementation of JAX-RS 2.1. The following Jersey dependencies are required in order to run a JAX-RS 2.1 client with JSON-P and JSON-B mapping outside of an enterprise container. Jersey client version 2.6 implements the JAX-RS 2.1 API. Following dependencies add the client runtime to a project: <dependency> <groupId>org.glassfish.jersey.core</groupId> <artifactId>jersey-client</artifactId> <version>2.26</version> </dependency> <dependency> <groupId>org.glassfish.jersey.inject</groupId> <artifactId>jersey-hk2</artifactId> <version>2.26</version> </dependency> ...

Read More »

Dockerized Java EE 8 applications with GlassFish 5.0

GlassFish 5.0 represents the reference implementation of Java EE 8. We can dockerize Java EE 8 applications by using a GlassFish base image, such as the official oracle/glassfish. The Dockerfile of a zero-dependency Java EE 8 application looks like follows: FROM oracle/glassfish:5.0 COPY target/application.war $GLASSFISH_HOME/glassfish/domains/domain1/autodeploy/ A Docker container of that image starts the application server and auto-deploys our application. application.war ...

Read More »

Functional Java by Example | Part 1 – From Imperative to Declarative

Functional Programming (FP) is about avoiding reassigning variables, avoiding mutable data structures, avoiding state and favoring functions all-the-way. What can we learn from FP if we would apply functional techniques to our everyday Java code? In this series called “Functional Java by Example” I will refactor in 8 installments an existing piece of code to see if I can reach ...

Read More »

Java Command-Line Interfaces (Part 30): Observations

This series on parsing command line arguments in Java has consisted of 29 posts published over four months and covering 28 distinct open source libraries available for parsing command line arguments in Java. This post collects some observations that can be made from the first 29 posts in this series and provides some general considerations to make when selecting one ...

Read More »

Set up private blockchain with Ethereum (part 2)

In my previous post I set up a network of two nodes running a private blockchain. In this post I use it to create accounts, mine some ether and browse the blockchain with the Mist browser on my Mac. First I make sure the nodes are up and running. Then I go to the ‘geth’ console that runs on node1. ...

Read More »