Skip to content

Commit

Permalink
watConsumer group id defined in app_prop
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkysingh-tarento committed Jul 20, 2022
1 parent 45d4e9d commit 6f7ad89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class WATConsumer {
private static final String[] ignorableFieldsForPublishedState = { "userName", "userEmail", "submittedFromName",
"submittedFromEmail", "submittedToName", "submittedToEmail", "createdByName", "updatedByName" };

@KafkaListener(id = "id2", topics = "${kafka.topics.wat.telemetry.event}", groupId = "watTelemetryTopic-consumer")
@KafkaListener(id = "id2", topics = "${kafka.topics.wat.telemetry.event}", groupId = "${kafka.topics.wat.telemetry.event.topic.consumer}")
public void processMessage(ConsumerRecord<String, String> data) {
try {
logger.info("Consuming the audit records for WAT .....");
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ kafka.topics.wat.telemetry.event=watTelemetryTopic
kafka.topics.parent.telemetry.event=dev.telemetry.raw
kafka.topics.parent.rating.event = dev.rating.event
kafka.topics.userutility.telemetry.event=userLastLoginTopic
kafka.topics.wat.telemetry.event.topic.consumer=watTelemetryTopic-consumer

userutility.telemetry.event.pdata.id=dev.sunbird.cb.ext.service
userutility.telemetry.event.pdata.pid=sunbird-cb-ext-service
Expand Down

0 comments on commit 6f7ad89

Please sign in to comment.