Home » Tag Archives: Spring (page 15)

Tag Archives: Spring

Applying aspect oriented programming

spring-interview-questions-answers

1.Introduction The main target of the aspect oriented programming is the separation of cross-cutting concerns. When we talk about cross-cutting concerns we are referring to generic functionality that is used in several places in our system or application. These concepts are, among others:         Logging Transaction management Error handling Monitoring Security The way to achieve this separation ...

Read More »

Spring Integration Standalone application with Spring Boot

spring-interview-questions-answers

I had earlier blogged about a way to write a standalone Spring Integration application. Spring Boot makes creating this standalone application much simpler. The simple flow was to poll the USGS service providing information about the earthquake activity around the world and to log this information. The flow described using Spring Integration is the following:           ...

Read More »

Configure favicon.ico in Spring MVC based application

spring-interview-questions-answers

Favicon is an icon (favicon.ico) associated with your website. Not every website is using favicon though. But most browsers do not care about it and they make request for it anyways. When favicon is not in place the server will return unnecessary 404 Not Found error. In a typical Spring MVC application, we firstly need to configure security filter that ...

Read More »

Creating contract-first web services with Spring WS

spring-interview-questions-answers

1 Introduction This article explains how to implement and test a SOAP web service using the Spring Web Services project. This example uses JAXB2 for (un)marshalling. To develop the service, I’ll use the contract-first approach, which consists in definning the service contract first, and based on this contract implement the service. The article is divided into the following sections:   ...

Read More »

Spring JMS: Processing messages within transactions

spring-interview-questions-answers

1.Introduction This post will show you how an error in the execution of the consumer during the asynchronous reception of messages with JMS, can lead to the loss of messages. I then will explain how you can solve this problem using local transactions. You will also see that this solution can cause in some cases, message duplication (for example, when ...

Read More »

Spring for Apache Hadoop 2.0 M5

spring-interview-questions-answers

Spring has happily announced the Spring for Apache Hadoop 2.0 M5 milestone releases, while they are also getting much closer to a release candidate. In the Spring blog there is a good comparison between the new version 2.0 and the 1.0 version. According to it: 1.0 version of Spring for Apache Hadoop uses HDFS and MapReduce with either MapReduce v1 ...

Read More »

Retry web service operations with RequestHandlerRetryAdvice

spring-interview-questions-answers

1.Introduction Sometimes when invoking a web service, we may be interested in retrying the operation in case an error occurs. When using Spring Integration, we can achieve this functionality with RequestHandlerRetryAdvice class. This class will allow us to retry the operation for a specified number of times before giving up and throwing an exception. This post will show you how ...

Read More »

How error handling works in Spring Integration

spring-interview-questions-answers

1.Introduction The target of this post is to show you how errors are handled when using the messaging system with Spring Integration. You will see that error handling is different between synchronous and asynchronous messaging. As usual, I’ll skip the chat and proceed with some examples. You can get the source code at github. 2.The sample application I will use ...

Read More »

Spring Integration – Using RMI Channel Adapters

spring-interview-questions-answers

1.Introduction This article explains how to send and receive messages over RMI using Spring Integration RMI channel adapters. It is composed of the following sections: Implementing the service: The first section focuses on creating and exposing a service. Implementing the client: Shows how to invoke the service using the MessagingTemplate class. Abstracting SI logic: Finally, I’ve added another section explaining ...

Read More »

Optimising Your ApplicationContext

spring-interview-questions-answers

There’s a problem with Spring, it’s been there for some time and I’ve come across it in a number of projects. It’s nothing to do with Spring, or the Guys at Spring, it’s down to Spring’s users like you and me. Let me explain… In the old days of Spring 2 you had to configure your Application Context by hand, ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close