NG
authorKai Moritz <kai@juplo.de>
Fri, 18 Aug 2023 14:21:23 +0000 (16:21 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 18 Aug 2023 15:18:41 +0000 (17:18 +0200)
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesConfiguration.java
src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/CreateChatRoomRequestToTest.java

index 4ebed8d..4f6e918 100644 (file)
@@ -48,24 +48,6 @@ public class KafkaServicesConfiguration
     return new KafkaChatRoomFactory(chatMessageChannel);
   }
 
-  @Bean
-  Producer<Integer, CreateChatRoomRequestTo>  chatRoomChannelProducer(
-      Properties defaultProducerProperties,
-      ChatBackendProperties chatBackendProperties,
-      IntegerSerializer integerSerializer,
-      JsonSerializer<CreateChatRoomRequestTo> chatRoomSerializer)
-  {
-    Map<String, Object> properties = new HashMap<>();
-    defaultProducerProperties.forEach((key, value) -> properties.put(key.toString(), value));
-    properties.put(
-        ProducerConfig.CLIENT_ID_CONFIG,
-        chatBackendProperties.getKafka().getClientIdPrefix() + "_CHATROOM_CHANNEL_PRODUCER");
-    return new KafkaProducer<>(
-        properties,
-        integerSerializer,
-        chatRoomSerializer);
-  }
-
   @Bean
   KafkaLikeShardingStrategy shardingStrategy(ChatBackendProperties properties)
   {