packagegrpchelloserver;importio.grpc.Server;importio.grpc.ServerBuilder;importjava.io.IOException;publicclassApp{publicstaticvoidmain(String[]args){//faccio partire il servizio sulla porta 8080try{Serverserver=ServerBuilder.forPort(8080).addService(newGreetingServiceImpl()).build();server.start();System.out.println("Server started!");server.awaitTermination();}catch(IOExceptione){e.printStackTrace();}catch(InterruptedExceptione){e.printStackTrace();}}}