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

Inbound adapters and gateways

olegz edited this page Jun 5, 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 { m: Message[_] => println("logging existing message and passing through " + m); m } -->
      transform { value: String => value.toUpperCase() }

flow.start

...

flow.stop

Inbound Adapters and Gateways

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


Back to Reference