Skip to content

Commit

Permalink
Initialize hibernate reactive before synthetic beans to enforce init …
Browse files Browse the repository at this point in the history
…before gRPC
  • Loading branch information
michalszynkiewicz committed Mar 18, 2022
1 parent 304fcea commit 3083e25
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
import org.jboss.logging.Logger;

import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.SyntheticBeansRuntimeInitBuildItem;
import io.quarkus.datasource.deployment.spi.DefaultDataSourceDbKindBuildItem;
import io.quarkus.datasource.runtime.DataSourcesBuildTimeConfig;
import io.quarkus.deployment.Feature;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.Produce;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.ApplicationArchivesBuildItem;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
Expand Down Expand Up @@ -183,6 +185,7 @@ void waitForVertxPool(List<VertxPoolBuildItem> vertxPool,

@BuildStep
@Record(RUNTIME_INIT)
@Produce(SyntheticBeansRuntimeInitBuildItem.class)
PersistenceProviderSetUpBuildItem setUpPersistenceProviderAndWaitForVertxPool(HibernateReactiveRecorder recorder,
HibernateOrmRuntimeConfig hibernateOrmRuntimeConfig,
List<HibernateOrmIntegrationRuntimeConfiguredBuildItem> integrationBuildItems) {
Expand Down

0 comments on commit 3083e25

Please sign in to comment.