Skip to content

Spring Integration 6.2 to 6.3 Migration Guide

Artem Bilan edited this page Mar 20, 2024 · 3 revisions

Removal of deprecated API

The previously @Deprecated(forRemoval = true) API has been removed.

AMQP delay message property as long

The MessageProperties.delay is now expected to be of long type. Therefore AmqpHeaders.DELAY header must be set as long. See https://github.com/spring-projects/spring-amqp/issues/2602 for more information.

Removal of spring-integration-security modules

Previously deprecated spring-integration-security modules has been remove in favor of SecurityContextChannelInterceptor & SecurityContextPropagationChannelInterceptor from the spring-security-messaging module of Spring Security project. Use implementation 'org.springframework.security:spring-security-messaging' dependency instead.

The ObservationPropagationChannelInterceptor is deprecated

The ObservationPropagationChannelInterceptor was deprecated for removal in the next 6.4 version as its logic was wrong with an attempt to restore an observation in the subscriber thread side when it is, in most cases, closed on the producer side. Instead a proper observation must be enabled on the MessageChannel and MessageHandler(s) subscribing to this channel. This way the sender side will emit a PRODUCER kind span storing a tracing information into message headers. The message handler side will start a new observation based on the restored tracing information from those headers using a CONSUMER kind span. Such a propagation mechanism works even with persistent channel and in distributed applications, where the mentioned ObservationPropagationChannelInterceptor is not able to transfer the tracing information over the network.

Clone this wiki locally