Skip to content

Commit

Permalink
create process outbound topic if not created
Browse files Browse the repository at this point in the history
  • Loading branch information
surabhi-mahawar committed Aug 8, 2022
1 parent e8a625e commit 6e772e6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.uci.utils.CampaignService;
import com.uci.utils.kafka.ReactiveProducer;
import io.fusionauth.client.FusionAuthClient;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.kie.api.io.Resource;
Expand Down Expand Up @@ -147,6 +148,11 @@ KafkaTemplate<String, String> kafkaTemplate() {
KafkaTemplate<String, String> kafkaTemplate = new KafkaTemplate<>(producerFactory());
return (KafkaTemplate<String, String>) kafkaTemplate;
}

@Bean
public NewTopic topic1() {
return new NewTopic(processOutboundTopic, 1, (short) 1);
}

// @Bean
// public HealthService healthService() {
Expand Down

0 comments on commit 6e772e6

Please sign in to comment.