Home » Tag Archives: Spring (page 15)

Tag Archives: Spring

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 »

Migrating Spring MVC RESTful web services to Spring 4

spring-interview-questions-answers

1   Introduction Spring 4 brings several improvements for MVC applications. In this post I will focus on restful web services and try these improvements by taking a project implemented with Spring 3.2 and upgrading it to Spring 4. The following points sum up the content of this post: Migration from Spring 3.2 to Spring 4.0 Changes in @ResponseBody and inclusion of ...

Read More »

Using jOOQ with Spring: Code Generation

jooq-2-logo

As we might remember from the first part of this tutorial, jOOQ states that jOOQ generates Java code from your database and lets you build typesafe SQL queries through its fluent API. The first part of this tutorial describes how we can configure the application context of a Spring powered application which uses jOOQ but it doesn’t describe how we ...

Read More »

Project Student: Simplifying Code With AOP

aspectj-logo

This is part of Project Student. Many people strongly believe that methods should fit within your editor window (say, 20 lines), and some people believe that methods should be even smaller than that. The idea is that a method should do one thing and only one thing. If it does more than that it should be broken apart into multiple ...

Read More »

What’s new in Spring

spring-interview-questions-answers

Let’s check on some new releases announced by the Spring community over the previous days: Spring Boot 1.0.0.RC1 Spring was pleased to announce the first release candidate of Spring Boot v1.0.0. It contains a number of bug fixes and enhancements over the previous milestone. Binaries have been published to the Spring Maven Repository. The project page is updated with download ...

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