From 3ca1a42d378cec4fee0b0b588ab2e33bd91f8407 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Tue, 15 Sep 2020 15:37:24 -0400 Subject: [PATCH] Swap EMPI channel consumer to use Subscription ResourceModifiedMessages --- .../ca/uhn/fhir/jpa/empi/broker/EmpiQueueConsumerLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/broker/EmpiQueueConsumerLoader.java b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/broker/EmpiQueueConsumerLoader.java index 647a5b2b9c4..fc9f4eb005c 100644 --- a/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/broker/EmpiQueueConsumerLoader.java +++ b/hapi-fhir-jpaserver-empi/src/main/java/ca/uhn/fhir/jpa/empi/broker/EmpiQueueConsumerLoader.java @@ -5,7 +5,7 @@ import ca.uhn.fhir.empi.log.Logs; import ca.uhn.fhir.jpa.subscription.channel.api.ChannelConsumerSettings; import ca.uhn.fhir.jpa.subscription.channel.api.IChannelFactory; import ca.uhn.fhir.jpa.subscription.channel.api.IChannelReceiver; -import ca.uhn.fhir.rest.server.messaging.json.ConcreteResourceModifiedJsonMessage; +import ca.uhn.fhir.jpa.subscription.model.ResourceModifiedJsonMessage; import com.google.common.annotations.VisibleForTesting; import org.slf4j.Logger; import org.springframework.beans.factory.annotation.Autowired; @@ -52,7 +52,7 @@ public class EmpiQueueConsumerLoader { if (myEmpiChannel == null) { ChannelConsumerSettings config = new ChannelConsumerSettings(); config.setConcurrentConsumers(myEmpiSettings.getConcurrentConsumers()); - myEmpiChannel = myChannelFactory.getOrCreateReceiver(IEmpiSettings.EMPI_CHANNEL_NAME, ConcreteResourceModifiedJsonMessage.class, config); + myEmpiChannel = myChannelFactory.getOrCreateReceiver(IEmpiSettings.EMPI_CHANNEL_NAME, ResourceModifiedJsonMessage.class, config); } if (myEmpiChannel != null) {