Modular RAML Using Includes, Libraries, Overlays and Extensions REST RAML 1. Introduction In our first two articles on RAML – the RESTful API Modeling Language – we introduced some basic syntax, including the use of data types and JSON schema, and we showed how to simplify a RAML definition by… Continue Reading modular-raml-includes-overlays-libraries-extensions

HttpSessionListener Example – Monitoring 1. Overview This tutorial will show how to register a javax.servlet.http.HttpSessionListener and track the number of active sessions in the web application using metrics. 2. Defining the Listener We can register the HTTP Session listener in the web.xml: <web-app …> <listener> <listener-class>org.baeldung.web.SessionListenerWithMetrics</listener-class> </listener> </web-app> Alternatively, in a… Continue Reading httpsessionlistener_with_metrics

A Guide to Spring Cloud Netflix – Hystrix 1. Overview In this tutorial, we’ll cover the Spring Cloud Netflix Hystrix – the fault tolerance library. We’ll use the library and implement the Circuit Breaker enterprise pattern, which is describing a strategy against failure cascading at different levels in an application.… Continue Reading spring-cloud-netflix-hystrix

Third Round of Improvements to the Reddit Application 1. Overview In this article we’re going to keep moving our little case study app forward by implementing small but useful improvements to the already existing features. 2. Better Tables Let’s start by using the jQuery DataTables plugin to replace the old,… Continue Reading reddit-web-app-improvements-3

Second Round of Improvements to the Reddit Application 1. Overview Let’s continue our ongoing Reddit web app case study with a new round of improvements, with the goal of making the application more user friendly and easier to use. 2. Scheduled Posts Pagination First – let’s list the scheduled posts… Continue Reading reddit-web-app-improvements-2

A Quick Guide to Spring MVC Matrix Variables 1. Overview The URI specification RFC 3986 defined URI path parameters as name-value pairs. Matrix variables is a Spring coined term and an alternative implementation for passing and parsing URI path parameters. Matrix variables support became available in Spring MVC 3.2 and… Continue Reading spring-mvc-matrix-variables