You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-2652: Make RabbitListenerErrorHandler aware of Channel
Fixes: #2652
Whenever a `MessageConversionException` occurs,
the raw Spring message returned in `RabbitListenerErrorHandler#handleError` is null.
Channel information is being stored inside of that raw message,
therefore it is not possible to manually nack just failed message
* Introduce a new `handleError(Message, Channel, Message<?>, ListenerExecutionFailedException)`
contract to make a `Channel` access independent of the `Message<?>` result
* Deprecate existing method with the plan to remove in the next version (see #2654)
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2023 the original author or authors.
2
+
* Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments