Skip to content

Commit

Permalink
kafka changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Mautsch committed Jul 5, 2024
1 parent ca345af commit 1a7d253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class CalendarConsumer {

static final String CONSUMER_NAME = "Calendar";

@KafkaListener(groupId = CONSUMER_NAME,
topics = {"patient.create", "patient.update", "preactitioner.create", "practitioner.update"})
@KafkaListener(groupId = CONSUMER_NAME, topics = {"patient.create", "patient.update"})
@KafkaListener(groupId = CONSUMER_NAME, topics = {"practitioner.create", "practitioner.update"})
public void processKafka(@Header(KafkaHeaders.RECEIVED_TOPIC) String key, EventData eventData) {
process(key, eventData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void produce(ChangeEvent changeEvent) {
changeEvent.referenceId());
}

private void send(String key, String referenceId) {
kafkaTemplate.send(key, new EventData(referenceId));
private void send(String topic, String referenceId) {
kafkaTemplate.send(topic, referenceId, new EventData(referenceId));
}

}

0 comments on commit 1a7d253

Please sign in to comment.