Skip to content

Commit

Permalink
Merge pull request #26 from abes-esr/CDE-348-rapport-derreur-bad-limi…
Browse files Browse the repository at this point in the history
…ter-aux-erreurs-bloquantes

FEAT : CDE-348-rapport-derreur-bad-limiter-aux-erreurs-bloquantes
  • Loading branch information
SamuelQuetin authored Feb 7, 2024
2 parents b77449e + c280bd3 commit dd51b70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/fr/abes/logskbart/kafka/LogsListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public LogsListener(ObjectMapper mapper, UtilsMapper logsMapper, LogKbartReposit
* @param message le message kafka
* @throws IOException exception levée
*/
@KafkaListener(topics = {"${topic.name.source.error}", "${topic.name.source.info}"}, groupId = "${topic.groupid.source}", containerFactory = "kafkaLogsListenerContainerFactory")
@KafkaListener(topics = {"${topic.name.source.error}"}, groupId = "${topic.groupid.source}", containerFactory = "kafkaLogsListenerContainerFactory")
public void listenInfoKbart2KafkaAndErrorKbart2Kafka(ConsumerRecord<String, String> message) throws IOException {
LogKbartDto dto = mapper.readValue(message.value(), LogKbartDto.class);
LogKbart logKbart = logsMapper.map(dto, LogKbart.class);
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ spring.kafka.consumer.value-serializer=org.apache.kafka.common.serialization.Str
spring.kafka.consumer.max-poll-records=10000

# Topic Kafka
topic.name.source.error=errorkbart2kafka
topic.name.source.info=infokbart2kafka
topic.name.source.error=bacon.logs.toload
# Pour la partie consumer : insertion dans kafka de la ligne kbart avec bestppn

spring.jpa.open-in-view=false
Expand Down

0 comments on commit dd51b70

Please sign in to comment.