Replies: 4 comments 1 reply
-
What errors did you get? It should be possible to Hm, I can see you're trying to use the servlet API. Do you use the undertow extension? |
Beta Was this translation helpful? Give feedback.
-
I believe the following is the preferred way if using the reactive libraries:
Works for us in |
Beta Was this translation helpful? Give feedback.
-
I was using javax.servlet.http.HttpServletRequest. I just tried @Inject io.vertx.core.http.HttpServerRequest and it seems to work, I'll investigate this more. We are not using reactive JAX-RS libraries, so is @Inject preferred over @context? |
Beta Was this translation helpful? Give feedback.
-
Just had this problem myself. Injecting Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried injecting HttpServletRequest but get CDI build errors. I have tried @context HttpServletRequest in the service method and I get rutime error of RESTEASY003880: Unable to find contextual data of type: javax.servlet.http.HttpServletRequest
How can I get the client IP calling the services?
-Dave
Beta Was this translation helpful? Give feedback.
All reactions