diff --git a/java/serving/src/main/java/feast/serving/config/ServerModule.java b/java/serving/src/main/java/feast/serving/config/ServerModule.java index 43f52d25fd..6993857935 100644 --- a/java/serving/src/main/java/feast/serving/config/ServerModule.java +++ b/java/serving/src/main/java/feast/serving/config/ServerModule.java @@ -32,11 +32,12 @@ protected void configure() { // @Provides public Server provideGrpcServer( + ApplicationProperties applicationProperties, OnlineServingGrpcServiceV2 onlineServingGrpcServiceV2, TracingServerInterceptor tracingServerInterceptor) { - ServerBuilder serverBuilder = ServerBuilder.forPort(6566); + ServerBuilder serverBuilder = + ServerBuilder.forPort(applicationProperties.getGrpc().getServer().getPort()); serverBuilder - .addService(onlineServingGrpcServiceV2) .addService(ProtoReflectionService.newInstance()) .addService(tracingServerInterceptor.intercept(onlineServingGrpcServiceV2));