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

 

 

What is javax.ws.rs.core.context? [ Part 4 ]

java-interview-questions-answers

How to use the @Context annotation In part 3 of What is javax.ws.rs.core.context? you learned how to use the @Context annotation with Request and Configuration, Providers, and Application instances. In this article, you will learn about using the @Context annotation to inject the HttpServletResponse and the HttpServletRequest classes. Get Access to the HttpServletRequest Properties The JAX-RS API runs on top of Servlets and ...

Read More »

Spring Cloud Config Series Part 3: Zookeeper Backend

java-interview-questions-answers

In this part of the series, we take a look at how we can use Spring Cloud Config with Zookeeper to manage our configuration. Introduction I’ve always found it hard to define what Zookeeper is. This is the definition given in its website ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. ...

Read More »

Spring Cloud Config Series Part 2: Git Backend

java-interview-questions-answers

After the first part of the series, where we looked at a Spring Cloud Config introduction, in this post we’ll look at a concrete implementation with a Git backend and the different options available using this backend. Introduction As we saw previously, one of the factors in the Twelve Factor App Manifesto was to move the configuration out of our ...

Read More »

Spring Cloud Config Series Part 1: Introduction

java-interview-questions-answers

I’m a big fan of the Spring Cloud set of tools. I’ve been using them for a while both in a professional capacity (though quite limited) and a personal one. If you have not used it before, you should try it out. You’ll see how convenient it is to set up a Micro-service environment where your applications can follow the ...

Read More »

What is javax.ws.rs.core.context? [ Part 3 ]

java-interview-questions-answers

How to use the @Context annotation In part 2 of What is javax.ws.rs.core.context? you learned how to use the @Context annotation to retrieve security information from an injected instance of the SecurityContext class and how to use JAX-RS resource class via an instance of ResourceContext. In this article, you will learn about using the @Context annotation with Request and Configuration, Providers, and Application. Request ...

Read More »

Generating backpressure-aware streams with Flowable.generate() – RxJava FAQ

RxJava is missing a factory to create an infinite stream of natural numbers. Such a stream is useful e.g. when you want to assign unique sequence numbers to possibly infinite stream of events by zipping both of them: Flowable<Long> naturalNumbers = //??? Flowable<Event> someInfiniteEventStream = //... Flowable<Pair<Long, Event>> sequenced = Flowable.zip( naturalNumbers, someInfiniteEventStream, Pair::of ); Implementing naturalNumbers is surprisingly complex. In RxJava ...

Read More »

New Regex Features in Java 9

I recently received my complimentary copy of the book “Java 9 Regular Expressions” from Anubhava Srivastava published by Packt. The book is a good tutorial and introduction to anyone who wants to learn what regular expressions are and start from scratch. Those who know how to use regex the book may still be interesting to reiterate the knowledge and to ...

Read More »

What is javax.ws.rs.core.context? [ Part 2 ]

java-interview-questions-answers

How to use the @Context annotation In part 1 of What is javax.ws.rs.core.context? you learnt how to use the @Context annotation to retrieve HTTP Header information from an injected instance of the HttpHeaders class and how to retrieve URI information from the UriInfo instance such as URI parameters and variables. In this article, you will learn about using the @Context annotation with the ...

Read More »

Spring Cloud Tutorials – Auto Refresh Config Changes using Spring Cloud Bus

java-interview-questions-answers

Problem In the previous article Introduction to Spring Cloud Config Server(http://sivalabs.in/2017/08/spring-cloud-tutorials-introduction-to-spring-cloud-config-server/) we have seen how to use Spring Cloud Config Server. But, the problem is to reload the config changes in Config Client applications we need to trigger /refresh endpoint manually. This is not practical and viable if you have large number of applications. Solution Spring Cloud Bus module can be used to link ...

Read More »