-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spring Integration 4.3 to 5.0 Migration Guide
The closableResource
typo in the IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE
constant value has been fixed to the proper closeableResource
.
If application doesn't use IntegrationMessageHeaderAccessor.CLOSEABLE_RESOURCE
to access to an appropriate header, it is recommended to review any closableResource
typo usage.
JMS components can be configured using XML with no connection factory property; the framework uses a default bean name.
Prior to version 5.0, this default bean name was connectionFactory
.
In order to align with Spring Boot's auto configuration, which configures a bean called jmsConnectionFacrory
, Spring Integration now uses that bean name as the default.
If your application relied on the previous behavior, you will need to rename your bean to jmsConnectionFactory
or change the component definitions to explicitly reference your bean.
The Reactor 2.0
isn't supported any more.
The Messaging Gateway Promise
return type from Reactor 2.0
has been replaced with the Mono
type from Reactor 3.0
.
For all the Reactive Streams changes for new Mono
type, please, refer to the Reactor Project Site.
The Spring Integration Java DSL has been merged to the Core project with Java 8 code base.
The old project remains for the previous Spring Integration versions and isn't compatible with version 5.0
.
Although the project has been generally merged, some changes have happened:
The following classes have been moved :
-
All the classes from
org.springframework.integration.dsl.core
toorg.springframework.integration.dsl
. -
From
org.springframework.integration.dsl.support
:
- the Java 8 functions (
Consumer
,Function
etc.) have been removed in favor ofjava.util.function
package classes -
Transformers
to theorg.springframework.integration.dsl
; -
BeanNameMessageProcessor
to theorg.springframework.integration.handler
; -
FunctionExpression
to theorg.springframework.integration.expression
; -
GenericHandler
to theorg.springframework.integration.handler
; -
MapBuilder
,StringStringMapBuilder
andPropertiesBuilder
to theorg.springframework.integration.support
; -
MessageProcessorMessageSource
to theorg.springframework.integration.endpoint
;
-
org.springframework.integration.dsl.support.tuple
classes have been replaced for usage for similar from the packagereactor.util.function
, which is now mandatory dependency Reactor3.0
. -
Classes
DslIntegrationConfigurationInitializer
andIntegrationFlowBeanPostProcessor
from the packageorg.springframework.integration.dsl.config
have been moved to theorg.springframework.integration.config.dsl
. -
Classes
TransactionHandleMessageAdvice
andTransactionInterceptorBuilder
from the packageorg.springframework.integration.dsl.transaction
have been moved to theorg.springframework.integration.transaction
.