spring-nats icon indicating copy to clipboard operation
spring-nats copied to clipboard

Embedded headers mode

Open jmaister opened this issue 4 years ago • 0 comments

I am using spring-nats to send/receive messages to a NATS broker.

I tried to activate the embedded headers mode but it does not work as expected. No header is sent along with the payload. I tested it with spring-cloud-stream-binder-kafka and a Kafka broker and it works properly.

Analyzing binder the code, I see that it differs from the spring-cloud-stream-binder-kafka on the implementation of io.nats.cloud.stream.binder.NatsChannelBinder#NatsChannelBinder.

super(null, provisioningProvider); // null for headers to embed

Is there a plan to support this header mode? Or add the ability of configure the list of headers to be embedded?

jmaister avatar Feb 21 '20 17:02 jmaister