Browse Source

Document Lifecycle change of DefaultMessageListenerContainer.

See #5078
Original pull request #5080
pull/5109/head
Christoph Strobl 1 month ago committed by Jens Schauder
parent
commit
8781a468d1
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 4
      src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc
  2. 2
      src/main/antora/modules/ROOT/pages/mongodb/change-streams.adoc

4
src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc

@ -62,6 +62,10 @@ static class Config extends AbstractMongoClientConfiguration { @@ -62,6 +62,10 @@ static class Config extends AbstractMongoClientConfiguration {
Users upgrading from prior versions may choose `BigDecimalRepresentation.STRING` as default to retain previous behaviour.
== DefaultMessageListenerContainer auto startup
The `DefaultMessageListenerContainer` that can be used to listen to e.g. _Change Streams_ now defaults its `SmartLifecycle` auto startup to `true`.
== JMX Support Discontinued.
We recommend switching to Spring Boot https://docs.spring.io/spring-boot/reference/actuator/endpoints.html[Actuator Endpoints].

2
src/main/antora/modules/ROOT/pages/mongodb/change-streams.adoc

@ -44,6 +44,8 @@ container.stop(); @@ -44,6 +44,8 @@ container.stop();
<5> Do not forget to stop the container once you are sure you no longer need it. Doing so stops all running `Task` instances within the container.
====
`DefaultMessageListenerContainer` implements `SmartLifecycle` and will by default be automatically started when registered as a Bean in the Application Context.
[NOTE]
====
Errors while processing are passed on to an `org.springframework.util.ErrorHandler`. If not stated otherwise a log appending `ErrorHandler` gets applied by default. +

Loading…
Cancel
Save