Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
How to Consume Message in Spring Cloud Stream Functional Binding

I am new to Functional Binding. Previously, I was doing my producer and consumer transactions with the annotation approach as follows. I could not understand how to do the same operations using functional binding. Can someone explain to me? Please do not share links. I would appreciate it if you could show me an example, even if it is a small one.

Producer

```

private final MessageChannel outputChannel;

public ProducerImpl(@Qualifier(ProducerStream.OUTPUT) MessageChannel outputChannel) {

this.outputChannel = outputChannel;

this.genericSettings = genericSettings;

}

@Override

public void publishData(Data data) {

outputChannel.send(MessageBuilder.withPayload(data).build());

}

```

ProducerStream.java

```

String OUTPUT = "dataOutput";

@Output(ProducerStream.OUTPUT)

MessageChannel outputChannel();

```

Listener

```

@StreamListener(ListenerStream.INPUT_DATA)

@Override

public void listenData(Data data) {

processService.processData(data);

}

```

ListenerStream.java

```

String INPUT_DATA = "dataInput";

@Input(INPUT_DATA)

SubscribableChannel inputChannel();

```

application.yml

spring:

application:

cloud:

bindings:

dataOutput:

destination: data-topic

dataInput:

destination: data-topic

about 4 years ago · Neslihan Kolukısa
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda