-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grpc support #413
Comments
gRPC support is outside the scope of xsbt-web-plugin, and would depend on the choice of servlet container. Out of the box, xsbt-web-plugin has support for Jetty 9 and Tomcat 9. Neither of these support gRPC as far as I know. Do you know if any servlet containers currently support gRPC? If so, you can find instructions for using a different servlet container here. |
It seems like gRPC should be supported on tomcat, see grpc/grpc-java#6933 and grpc/grpc-java#4738. |
Good news! Made it to deploy the grpc server in tomcat. The way I have done it is by starting it asyncronously under the main class:
However, the grpc server only starts after the first http call (when the httpserverlet is created), but ideally it would initialise at the same time as the tomcat server does. Do you know if there is a good way of achieving that? |
Oh cool! Nice work getting this going. Are you using the bundled container, or a custom/later one? To get the gRPC server to start, you need the container to eagerly instantiate your <servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.example.MyServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet> |
Awesome! Thanks :D |
Hello,
Thanks for creating this project, is great!
Wanted to know if the plugin also supports grpc.
And in case it does, would additional configuration be needed? (I can not see any references on the docs)
The text was updated successfully, but these errors were encountered: