Histórico da Página
...
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
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:
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas