Whimusical
Whimusical

Reputation: 6649

Is there any facility in Spring Integration DSL for dealing with messaging abstraction instead of JMS, AMQP...?

Looks like there's no factory for building messageDrivenChannelAdapter, listenerContainers... in Spring messaging abstraction (org.springframework.messaging.*) instead of JMS (org.springframework.jms.*).

I mean so you can configure messaging's MappingJackson2MessageConverter instead of JMS's, use JmsMessagingTemplate...

Upvotes: 0

Views: 74

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121482

The JmsMessagingTemplate isn't designed for use from the Spring Integration flow. Here we have adapters and channels between them. The JmsMessagingTemplate is a one stop shop to be used from the target service without any flow capabilities.

You can use it though from the .handle(jmsMessagingTemplate::send) as Service Activator and from the IntegrationFlow.from(jmsMessagingTemplate::receive) as Inbound Channel Adapter.

Upvotes: 1

Related Questions