ServerBuilder... .addService(new ServiceImplOne()) .addService(new ServiceImplTwo()) .build()l
where ServiceImplOne is a concrete subclass of a generated stubs XXXImplBase class (look for an abstract class in the generated code which implements BindableService) On Mon, Oct 3, 2016 at 5:33 PM, quackerjeff <[email protected]> wrote: > I read a previous posting that it's possible to register multiple services > in one server dynamically. I'm using a MutableHandlerRegistry but it's > addService takes a serviceName or a ServerServiceDefinition. The > ServiceBuilder.addService takes a BindableService. What do I need to do? > I'm at a complete and utter loss. I was hoping to have one server > listening on one port > to handle my services. Are there any examples? How does the serviceName > relate to my service implementation,etc? > > Thank you! > > -- > 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/54c47570-ed79-4edf-b368-b34e94f21d0a%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/54c47570-ed79-4edf-b368-b34e94f21d0a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CADQ0XY3P1Kaoy7mzbJ0jcffMm7inkz4u1BPgYSD8saTRLaGV%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
