Home » Tag Archives: Spring Integration (page 2)

Tag Archives: Spring Integration

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 »

Spring Integration Publisher

spring-interview-questions-answers

Consider a hypothetical requirement – You have a service class in your application and you want to capture some information around the calls to this service:                   @Service public class SampleBean { private static final Logger logger = LoggerFactory.getLogger(SampleBean.class); public Response call(Request request) { logger.info("SampleBean.call invoked"); return new Response(true); } } AOP ...

Read More »

Light-weight, open-source integration: Apache Camel or Spring Integration?

apache-camel-logo

First of all, for full disclosure, for the last 1.5 years, I’ve been working as a consultant for FuseSource (now Red Hat) supporting SOA and Integration projects for large and small companies in diverse verticals from retail, shipping, banking/finance, health, etc etc. My specialty has been architecting solutions with high scalability and throughput demands using some of the best open-source ...

Read More »

Spring Integration: A lightweight integration Approach

spring-interview-questions-answers

Today’s application expects access of all business in enterprise environment regardless of application technologies, which require, seamless integration with desperate systems. This integration can be achieved through wiring of desperate systems using Middleware technologies. Integration platform enables environment for applications to share information with each other to make architecture high interoperable. Spring Integration provides a mediation framework to build lightweight ...

Read More »

Spring Integration – Robust Splitter Aggregator

spring-interview-questions-answers

A Robust Splitter Aggregator Design Strategy – Messaging Gateway Adapter Pattern What do we mean by robust? In the context of this article, robustness refers to an ability to manage exception conditions within a flow without immediately returning to the caller. In some processing scenarios n of m responses is good enough to proceed to conclusion. Example processing scenarios that ...

Read More »

Aggregating async results using Spring Integration

spring-interview-questions-answers

Hi, I came across an issue which has very nice solution using Spring Integration. Many times we have the need for a scenario of dispatching a message to unknown number of destinations. For this purpose we have the Topic methodology. But some times in addition we also want to receive answers from all destinations which received the message and aggregate ...

Read More »

Spring Integration key notes with real life scenarios

spring-interview-questions-answers

This post will summarize Spring Integration (SI) important key notes together with messaging Integration patterns. For each key note I will add a real life example based on my experience. Splitter a. What it does? The Splitter is actually a pattern which receives one message in one point and split it into several. b. Why is it good for me? The Splitter can be used ...

Read More »

Migrating from Hibernate 3 to 4 with Spring integration

jboss-hibernate-logo

This week it was time to upgrade our code base to the latest Hibernate 4.x. We postponed our migration (still being on Hibernate 3.3) since the newer maintenance releases of the 3.x branch required some API changes which were apparently still in flux. An example is the UserType API which was still showing flaws and was going to be finalized ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.