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

 

 

Jersey Web Service Hello World Example in Java

java-interview-questions-answers

After Restlet, Jersey is another popular open source framework to create RESTful web services in Java. Jersey conforms JAX-RS specification and actually it is the reference implementation of JAX-RS (JSR 311)(http://jsr311.java.net/nonav/releases/1.1/index.html) specification. In the last article, we have seen the Restlet HelloWorld Example and today we’ll see the Jersey HelloWorld Example. Typically, when a developer thinks of creating a RESTful web service using Java, ...

Read More »

Spring Boot Web Slice test – Sample

java-interview-questions-answers

Spring Boot introduced test slicing a while back and it has taken me some time to get my head around it and explore some of its nuances. Background The main reason to use this feature is to reduce the boilerplate. Consider a controller that looks like this, just for variety written using Kotlin. @RestController @RequestMapping("/users") class UserController( private val userRepository: UserRepository, private val ...

Read More »

Short Retry vs Long Retry in Apache Camel

Camel Design Patterns book describes 20 patterns and numerous tips and best practices for designing Apache Camel based integration solutions. Each pattern is based on a real world use case and provides Camel specific implementation details and best practises. To get a feel of the book, below is an extract from the Retry Pattern from the book describing how to ...

Read More »

Hibernate Architecture Overview

The diagram below provides a high-level view of the Hibernate architecture: Minimal architecture The “minimal” architecture has the application manage its own JDBC connections and provide those connections to Hibernate; additionally the application manages transactions for itself. This approach uses a minimal subset of Hibernate APIs. Comprehensive architecture Hibernate Basic APIs Here are quick discussions about some of the API ...

Read More »

[MEGA DEAL] The Complete Python Programming Bundle (93% off)

Take a Deep Dive Into a Wide Range of Python’s Many Capabilities Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer. We are offering a massive 93% off on The Complete Python Programming Bundle. Get it now with only $79, instead of its original price of $1,176. Python Programming for Beginners Designed for beginners, ...

Read More »

Thinking About What to Call Team Members and Managers

Bob Sutton (@work_matters) tweeted this the other day: Perhaps companies ought to stop using “IC” or “Individual Contributor.” It seems to absolve such employees from helping others I retweeted it and we had some back-and-forth about what to call people i organizations. Let’s eliminate these words for people who are not managers: Individual Contributor: There are no one-person projects or ...

Read More »

The Best Programming Languages for Each Situation

There is a question that many people take as a sign that the questioner does not understand the subject at all. Some people even find it enraging. The question is usually in the form What is the best X? What is the best car? What is the best programming language? But at the same time it is a question that we ...

Read More »

Use Precise Java Method Parameters

Learn how to pick the right method parameter types and get more robust and shorter code in your Java applications. We Java developers generally have a bad habit of using method parameters without thinking of what is actually needed and just picking whatever we are used to, what we have available or whatever first comes into mind. Consider the following ...

Read More »