Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Gateway and Service Activator?

Tags:

What is the difference between Gateway and Service Activator as Message Endpoints (in terms of Enterprise Integration Patterns)?

like image 980
Belun Avatar asked Apr 29 '12 13:04

Belun


People also ask

What is Service Activator?

The service activator is the endpoint type for connecting any Spring-managed object to an input channel so that it may play the role of a service. If the service produces output, it may also be connected to an output channel.

What is messaging gateway in Spring Integration?

A gateway hides the messaging API provided by Spring Integration. It lets your application's business logic be unaware of the Spring Integration API. By using a generic Gateway, your code interacts with only a simple interface.

Does Spring integration support synchronous gateways?

The gateway can either by synchronous (causing the application to block and wait for the SI system to respond) or asynchronous (allowing the application to do other work while a long running SI system processes).


1 Answers

http://eaipatterns.com/

Typically, a service activator is used to invoke a local service, in such a manner that the service doesn't know it's being invoked from a messaging system.

A gateway s typically an entry or exit point for the messaging system.

like image 102
Gary Russell Avatar answered Oct 05 '22 01:10

Gary Russell