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
Splitternow can deal with the JavaStreamand ReactorFluxpayloads. If the output channel is aReactiveStreamsSubscribableChannel, splitting supports back-pressure. -
A
ErrorMessagePublishertogether with theErrorMessageStrategyhave been introduced to pursue better error handling experience with the inception message for theErrorMessage. TheMessageListenerContainerin Spring Kafka 2.0 and Spring AMQP 2.0 are supplied with their ownErrorMessageStrategyto represent the original data in theErrorMessagefor the error handling flow. -
The new
MockMessageHandlerhas 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());
…