Spring Integration – Channels

Spring Integration – Channels

Spring Integration is a framework providing implementation of enterprise integration patterns. To get started on Spring Integration framework we need to first understand some basic constructs. Since Spring Integration framework’s primary job is providing architecture plumbing, following are the building-blocks of any SI solution: Message: This is the payload which moves between various nodes which are integrated by the framework End-point: These are the nodes […]

Read Me

Spring Boot with In-memory ActiveMQ

Spring Boot with In-memory ActiveMQ

The in-memory ActiveMQ can be used to quickly test any message broker specific functionality when we don’t have an external message broker readily available. In the given example we will submit a string to a RESTful web service which will save the message string in the queue on message broker. Then we will implement a listener to read the message from the queue and display […]

Read Me

Spring REST Error Handling

Spring REST Error Handling

Spring framework provides three ways to handle error response while processing a request in the controller class Locally in the method handling a specific request Specific controller method level Global controller level Locally using @ResponseEntity The following code only updates the Person if it already exists otherwise responds with a HTTP Status Code 400 that is Bad Request. The ResponseEntity takes the object of response […]

Read Me