Skip to content

Commit

Permalink
MODEXPW-499: Replace deprecated KafkaProperties methods (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianladisch authored Nov 15, 2024
1 parent 475ce9c commit d20c54e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d20c54e

Please sign in to comment.