The abstract base classes in TTTServices function as a template for your service. You have to actually implement the methods in TTTService (which, I think should be TTTServiceGrpc.TTTServiceImplBase). The generated code is only there to help you avoid having to write the boilerplate code. If you pass in an empty template, the server is going to fail to start because it won't know what to do with incoming requests. There are many examples* in the grpc java repo that show you what you need to do.
https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/helloworld/HelloWorldServer.java On Tuesday, January 10, 2017 at 9:07:12 PM UTC-8, Mikko Kokkonen wrote: > > > > tiistai 10. tammikuuta 2017 23.41.53 UTC+2 Carl Mastrangelo kirjoitti: >> >> TTTService is just a dummy wrapper file, it doesn't contain any real >> code. You need to actually implement the server part of your application. >> You do that by extending the stubs in the generated code. >> >> >> > That is what I'm trying to ask in here. How can I use that wrapper file? > I'm just currently stuck in even starting the service. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/bf248d36-74dc-48fd-b33e-a5afa0238d04%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
