The Spring framework 3 provides an annotation @ExceptionHandler that can be used to intercept uncaught/unhandled exceptions in request mapped functions in controllers. In this post we will see how to use this annotation.
Code snippet to convert exception stack trace to a String in Java
This post looks at how to create a websocket client using project tyrus which is a reference implementation of websockets in java.
Annotations and a task namespace has made creating scheduled jobs in spring, a breeze. In three steps you can configure a timer in a spring app. Step 1: Add the task namespace and xsd schema to your application context <beans … Continued
Learn how to create random strings of various types using Apache Commons Lang
In HTTP 1.1, all connections between the browser and the server are considered persistent unless declared otherwise. This leads to wastage of resources (server threads). Learn how you can configure Tomcat to support a much higher number of concurrent connections using the NIO connector.
Often while building a maven project you need to skip tests, especially if they are failing. Learn how to skip tests.
Learn how to use Apache Commons Configuration for a simple solution to compose multiple configuration sources, reloading configurations as well as persisting changes to configurations to disk.
The Spring Expression Language (SpEL for short) is a powerful expression language that supports querying and manipulating an object graph at runtime as well as evaluating logical and mathematical expressions and many other features. In this post we will be using SpEL for a number of use cases to explore the capabilities of this library.