Spring Integration 5.0 Milestone 5 Available
On behalf of the Spring Integration team I am pleased to announce that the fifth milestone for the Spring Integration 5.0 release (5.0.0.M5
) is now available.
21 JIRAs (and some GitHub issues) made into this release, including bug fixes and a number of new features. Some highlights of features in M4 and M5, since the previously announced Milestone 3:
-
The
Splitter
now can deal with the JavaStream
and ReactorFlux
payloads. If the output channel is aReactiveStreamsSubscribableChannel
, splitting supports back-pressure. -
A
ErrorMessagePublisher
together with theErrorMessageStrategy
have been introduced to pursue better error handling experience with the inception message for theErrorMessage
. TheMessageListenerContainer
in Spring Kafka 2.0 and Spring AMQP 2.0 are supplied with their ownErrorMessageStrategy
to represent the original data in theErrorMessage
for the error handling flow. -
The new
MockMessageHandler
has been added to Spring Integration Test framework for replacing real `MessageHandler`s for unit testing:MessageHandler mockMessageHandler = mockMessageHandler() .handleNextAndReply(m -> m.getPayload().toString().toUpperCase());
this.mockIntegrationContext .substituteMessageHandlerFor("myServiceActivator", mockMessageHandler);
this.pojoServiceChannel.send(new GenericMessage<>("foo")); receive = this.results.receive(10000);
assertEquals("FOO", receive.getPayload());
…