Testing time based reactor core streams with Virtual time

Reactor Core implements the Reactive Streams specification and deals with handling a (potentially unlimited) stream of data. If it interests you, do check out the excellent documentation it offers. Here I am assuming some basic familiarity with the Reactor Core libraries Flux and Mono types and will cover Reactor Core provides an abstraction to time itself to enable testing of functions which depend on ...

Read More »

Eclipse MicroProfile: 5 Things You Need to Know

Optimising Enterprise Java for Microservice Architecture The Eclipse MicroProfile initiative was launched at JavaOne 2016, the brainchild of server vendors and Java user groups, in order to address the shortcomings in the Enterprise Java microservices space. The pace of Java EE releases slowed to a point where it was unable to meet the challenges of the rapidly advancing microservice trend. ...

Read More »

Testing a HATEOAS service

spring-interview-questions-answers

This post is a follow up post to a few that I have written recently relating to writing a HATEOAS service and handling exceptions with Spring (Applying HATEOAS to a REST API with Spring Boot and Global exception handling with @ControllerAdvice). Now that we have looked through setting up a service and how to add some error handling via controller ...

Read More »

Java 9, Jigsaw, JPMS, and Modules: A Personal Exploration

Java 9 delayed so many times because of Project Jigsaw, and you may be heard a lot of thing about modules, modularity, and other stuff, so, what it’s all about? What the heck is modularization and what do we mean by modularized platform? Java Platform Module System (JPMS)? Is it going to be a revolution in Java ecosystem? This post is my ...

Read More »

Introduction to WSO2 Registry Mounting

java-interview-questions-answers

This post is based on the common questions raised about registry mounting and how it works etc. Below are the main questions people ask: 1). How mounting works? 2). What is the difference between Config Registry and Governance Registry? 3). Can I use databases other than H2 for Local Registry? 4). What is meant by mount path and target path? ...

Read More »

GC Explained: Algorithms

As described in the previous post, we have four different garbage collectors available in HotSpot JVM. There are some significant differences between them, but the actual concepts behind the algorithms which are used to do the actual job are quite similar. In this short post, I will try to explain three basic algorithms: Mark-sweep Mark-sweep-compact Mark-copy GC Roots Before we ...

Read More »

Java Application Performance Monitoring: End-to-end performance of complex distributed applications

Discover faster, more efficient performance monitoring with an enterprise APM product learning from your apps. Take the AppDynamics APM Guided Tour! Monitor Java application performance — focused on business transactions — end-to-end in the most complex and distributed environments. Auto-discovered business transactions, dynamic baselining, code-level diagnostics, and Virtual War Room collaboration ensure rapid issue identification and resolution to maintain an ...

Read More »

Using Gmail as SMTP server from Java, Spring Boot apps

spring-interview-questions-answers

Gmail users can use Gmail’s SMTP server smtp.gmail.com to send emails from their Spring Boot apps. For this let us do some setup in the app: Provide SMTP connection properties in the application.properties file: spring.mail.host=smtp.gmail.com spring.mail.username=<your gmail/google app email> spring.mail.password=***** spring.mail.port=587 spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.required=true Use Spring Boot Email tools library – which is a wrapper over Spring Boot Email starter library. ...

Read More »

[MEGA DEAL] The Full Stack JavaScript Bundle (94% off)

Prove You’re More Than A One-Trick Programming Pony with This Massive (57+ Hours) Training In The MEAN Stack Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer. We are offering a massive 94% off on The Full Stack JavaScript Bundle. Get it now with only $38, instead of the original price of $719. Learn ...

Read More »