Most frequently asked Spring Integration Interview Questions
- What is Spring Integration?
- What are the components of Spring Integration?
- What is Message EndPoint in Spring Integration?
- Name the different types of Message EndPoints in Spring Integration?
- What are the Advantages of using Spring Integration?
- What does Message Router do?
- Name the different types of message router?
- Explain Pipe and Filter?
- What is a Channel Adapter?
- How many types of Channel Adapters are there?
- How can we Testing spring framework?
What is Spring Integration?
Spring Integration is a lightweight, non intrusive and decoupled programming model that supports Enterprise Integration Patterns.It helps in building subsystems with simple POJOs in a decoupled manner, that can be assembled very easily.It provides us:A wide selection of mechanisms to communicate with external systems.
Request or reply scenarios(inbound or outbound).
What are the components of Spring Integration?
Components of Spring Integration are :Message
Message Channel
Message EndPoint
What is Message EndPoint in Spring Integration?
Message Endpoint helps in connecting application code to the messaging framework.It provides declarative configuration which connects our domain specific code to the messaging infrastructure provided by spring.Endpoint is similiar to the role of a controller in the MVC paradigm, it handles messages and are mapped to the messages channel.Name the different types of Message EndPoints in Spring Integration?
Message TransformerMessage Filter
Message Router
Splitter
Aggregator
Service Activator
Channel Adapter
What are the Advantages of using Spring Integration?
Integration helps in providing simple model for implementing complex enterprise integration solutions.It promotes incremental adoption for existing spring users.
Helps in facilitating message driven behavior within a spring application.
What does Message Router do?

Message Router helps in deciding which channel should get the message next(if any).
Name the different types of message router?
There are 3 types of message routers: Payload Type router helps in routing incoming messages from incoming channel.Header Value router helps in deciding output channel depending on the header value.
Recipient List router helps in sending all the incoming messages to all output channels.
Explain Pipe and Filter?
Pipes helps in transforming the messages between filters.Connectors are also known as PipesFilters helps by representing sub systems which produces messages.Components are also known as Files
What is a Channel Adapter?

Channel Adapter helps in connecting Message Channel with some other systems.It may be inbound or outbound.
How many types of Channel Adapters are there?
There are 2 types of Channel Adapters:Outbound Adapters
Inbound Adapters
How can we Testing spring framework?
We can test spring framework by using this example:package org.springexample.integration; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration public class SpringIntegTest { @Autowired private SentRequest request = null; @Test public void testIntegration() { Employee emp = new Employee("John", "321", "London"); request.process(emp); } }