Skip to content
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

how to use this in java? #685

Closed
DuyThangDecima opened this issue Jun 27, 2018 · 5 comments
Closed

how to use this in java? #685

DuyThangDecima opened this issue Jun 27, 2018 · 5 comments

Comments

@DuyThangDecima
Copy link

My project written Java, I don't find document install, use ... for Java
Help me.

@achew22
Copy link
Collaborator

achew22 commented Jun 27, 2018

@DuyThangDecima did you try reading through the documentation? Do you have a gRPC server running in Java already? What have you tried doing?

@alvoron
Copy link

alvoron commented Jul 16, 2018

Let me proceed this thread, since I have the same task. I have a Spring Boot application. I was able to run gRPC server in it, it works fine.
Then I decided to add REST interface. I have genereted reverse-proxies. Example entrypoint is written using Go and I haven't seen how can I use built in Tomcat from Spring Boot to host reverse-proxies. Can grpc-gateway generate Java proxies? Or there is another way to use Spring Boot Tomcat instead of Go web server?

@achew22
Copy link
Collaborator

achew22 commented Jul 16, 2018

As of right now, grpc-gateway doesn't generate any Java code, let alone spring boot definitions. There's no way to generate a version of grpc-gateway that runs in Tomcat instead of in the go run time. There are, however, some projects that generate similar functionality for Java. I've never used them and cannot attest to their quality but I do know they exist. I'm reluctant to recommend any particular one though because I haven't used any of them. They're pretty easy to find on Google. Do you have any luck with them, please report back here so we can find out what the experience is like.

Thank you!

@achew22 achew22 closed this as completed Jul 16, 2018
@CosminaMusat
Copy link

Is this issue still existing?
I still can't use grpc-gateway for a pure Java project with Spring Boot?
My application (server-side) needs to be written in Java and we have to expose APi's both with gRPC and REST.
From what I understood so far is impossible to do this in a Spring Boot app?
Regards!

@grpc-ecosystem grpc-ecosystem locked as off-topic and limited conversation to collaborators Oct 31, 2019
@achew22
Copy link
Collaborator

achew22 commented Oct 31, 2019

Please see earlier comments for how you might be able to achieve a similar result in Java. If you have specific concerns with this repo, please open a new issue and let's talk about them there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants