Skip to content
This repository was archived by the owner on Jul 9, 2022. It is now read-only.

Inbound adapters and gateways

olegz edited this page Mar 4, 2012 · 11 revisions

JMS Inbound Gateway represents ListeningIntegrationComposition type. This means two things

  1. ListeningIntegrationComposition can only be the first element in the message flow.
  2. You can not send a Message to a messaging flow that begins with the ListeningIntegrationComposition, therefore send(..)* methods will not be available on such composition. Instead you will have start and stop method.

For example:

val connectionFactory = JmsDslTestUtils.localConnectionFactory

val flow =
      jms.listen(requestDestinationName = "myQueue", connectionFactory = connectionFactory) -->
      handle.using { m: Message[_] => println("logging existing message and passing through " + m); m } -->
      transform.using { value: String => value.toUpperCase() }

flow.start

...

flow.stop

Inbound Adapters and Gateways

[JMS Inbound Gateway] (https://github.com/SpringSource/spring-integration-scala/wiki/JMS-Inbound-Gateway)


Back to Reference

Clone this wiki locally