Hi Linesh,
gRPC expects full control over the listening socket in the case of server 
side, and expects full control over creating and tearing down connections 
in the case of client side. This doesn't really fit into the model of a 
servlet container, which is what Tomcat is. If you really must create a 
gRPC server on the same JVM as Tomcat, you can add the normal gRPC startup 
code to whatever server start up code you already have:
https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/helloworld/HelloWorldServer.java#L36

Keep in mind that gRPC is not a servlet container, so it will not be able 
to run your existing Tomcat servlets.

On Monday, November 27, 2017 at 1:24:27 AM UTC-8, Linesh Mohan wrote:
>
> Hello Team,
>
> I am trying to start to gRPC server within a tomcat deployment and facing 
> some issues. I am trying the achieve the following -
> I have an app server deployed on tomcat and now I want to use gRPC, hence 
> I want to deploy a gRPC server on the same app server.
>
> Kindly help me with the above case.
>
> Thanks in advance.
> Linesh
>

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/aeb81630-a9e8-495f-8d47-b98866cff93e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to