Skip to content

Commit 272efdd

Browse files
committed
Don't Extend AbstractMessageProducingHandler.
1 parent 22bcc3b commit 272efdd

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/outbound/RabbitStreamMessageHandler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
import org.springframework.integration.amqp.support.AmqpHeaderMapper;
2828
import org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper;
2929
import org.springframework.integration.amqp.support.MappingUtils;
30-
import org.springframework.integration.handler.AbstractMessageProducingHandler;
30+
import org.springframework.integration.core.MessagingTemplate;
31+
import org.springframework.integration.handler.AbstractMessageHandler;
3132
import org.springframework.messaging.Message;
3233
import org.springframework.messaging.MessageChannel;
3334
import org.springframework.messaging.MessageHandler;
@@ -45,12 +46,14 @@
4546
* @since 6.0
4647
*
4748
*/
48-
public class RabbitStreamMessageHandler extends AbstractMessageProducingHandler {
49+
public class RabbitStreamMessageHandler extends AbstractMessageHandler {
4950

5051
private static final int DEFAULT_CONFIRM_TIMEOUT = 10_000;
5152

5253
private final RabbitStreamOperations streamOperations;
5354

55+
private final MessagingTemplate messagingTemplate = new MessagingTemplate();
56+
5457
private boolean sync;
5558

5659
private long confirmTimeout = DEFAULT_CONFIRM_TIMEOUT;

src/reference/asciidoc/whats-new.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ A `PostgresSubscribableChannel` allows to receive push notifications via `Postgr
4444

4545
See <<./jdbc.adoc#postgresql-push,PostgreSQL: Receiving Push Notifications>> for more information.
4646

47+
[[x6.0-rmq]]
48+
=== RabbitMQ Stream Queue Support
49+
50+
The AMQP module has been enhanced to provide support for inbound and outbound channel adapters using RabbitMQ Stream Queues.
51+
See <<./amqp.adoc#rmq-streams,RabbitMQ Stream Queue Support>> for more information.
4752

4853
[[x6.0-general]]
4954
=== General Changes
@@ -104,8 +109,3 @@ See <<./jdbc.adoc#jdbc-lock-registry,JDBC Lock Registry>> for more information.
104109
The `lookupHost` property of the `AbstractConnectionFactory` and `DatagramPacketMessageMapper` is now set to `false` by default to avoid delays in the environments where DNS is not configured.
105110

106111
See <<./ip.adoc#ip,TCP and UDP Support>> for more information.
107-
108-
=== RabbitMQ Changes
109-
110-
The AMQP module has been enhanced to provide support for inbound and outbound channel adapters using RabbitMQ Stream Queues.
111-
See <<./amqp.adoc#rmq-streams,RabbitMQ Stream Queue Support>> for more information.

0 commit comments

Comments
 (0)