This repository was archived by the owner on Jul 9, 2022. It is now read-only.
-
Couldn't load subscription status.
- Fork 33
Inbound adapters and gateways
olegz edited this page Mar 4, 2012
·
11 revisions
JMS Inbound Gateway represents ListeningIntegrationComposition type. This means two things
- ListeningIntegrationComposition can only be the first element in the message flow.
- 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[JMS Inbound Gateway] (https://github.com/SpringSource/spring-integration-scala/wiki/JMS-Inbound-Gateway)