Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODEXPW-499: Replace deprecated KafkaProperties methods #560

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public <V> ConcurrentKafkaListenerContainerFactory<String, V> kafkaListenerConta

@Bean
public <V> ConsumerFactory<String, V> consumerFactory(ObjectMapper objectMapper, FolioModuleMetadata folioModuleMetadata) {
Map<String, Object> props = new HashMap<>(kafkaProperties.buildConsumerProperties());
Map<String, Object> props = new HashMap<>(kafkaProperties.buildConsumerProperties(null));
var deserializer = new JsonDeserializer<V>(objectMapper).trustedPackages("*");
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, deserializer);
Expand All @@ -56,7 +56,7 @@ public <V> ConsumerFactory<String, V> consumerFactory(ObjectMapper objectMapper,
@Bean
public <V> ProducerFactory<String, V> producerFactory(
FolioExecutionContext folioExecutionContext) {
Map<String, Object> props = new HashMap<>(kafkaProperties.buildProducerProperties());
Map<String, Object> props = new HashMap<>(kafkaProperties.buildProducerProperties(null));
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, JsonSerializer.class);
props.put(ProducerConfig.INTERCEPTOR_CLASSES_CONFIG, KafkaProducerInterceptor.class.getName());
Expand Down
Loading