Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagejava
themeMidnight
linenumberstrue
collapsetrue
@AllArgsConstructor
@Component
public class Publisher {
    private static final String EXCHANGE = "nomeExchange"

    private TransactionContext transactionContext;
	private RabbitTemplate rabbitTemplate;

    public <T> void publish(T message) {
		var messageName = event.getClass().getSimpleName();

	 	message = TOTVSMessageBuilder.<T>
					.withDefaultType()
					.setContent(message)
					.setTransactionInfo(transactionInfo)
					.buildAmqp();      

		rabbitTemplate.convertAndSend(EXCHANGE, null,   message , null); 
}


...


DE:

Bloco de código
languageyml
themeMidnight
linenumberstrue
collapsetrue
cloud:
    stream:
      pollable-source: <<canalDeErro>>
      bindings:
        <<canalDeErro>>-in-0:
          destination: <<exchangeErro>>
          group: <<filaErro>>

         <<canalDeErro>>-out-0:
          destination: <<exchangeErro>>
          group: <<filaErro>>
          producer:
            requiredGroups: <<filaErro>>


PARA:

Bloco de código
languageyml
themeMidnight
linenumberstrue
collapsetrue
tjf:
  messaging:
    amqp:
      error:
        exchange: <<exchangeErro>>

      exchanges:
        topicExchanges: 
          - name: <<exchangeErro>>
            durable: true
            autoDelete: false
      queues:
        queuesList:
          - name: <<exchangeErro>>.<<filaErro>>
            durable: true
            autoDelete: false
            exclusive: false
        queue-dlq: <<filaErro>>

      bindings:
        bindingsList:
          - destination: <<filaErro>>
            exchange: <<exchangeErro>>
            destinationType: queue    



...


DE: