How to get client IP in Quarkus JAX-RS service @ApplicationScoped?

577 views
Skip to first unread message

David Hoffer

unread,
Aug 23, 2022, 10:38:31 AM8/23/22
to Quarkus Development mailing list
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

Georgios Andrianakis

unread,
Aug 23, 2022, 10:39:29 AM8/23/22
to dhof...@gmail.com, Quarkus Development mailing list
Hi,

Please use Zulip chat, Github Discussions or StackOverflow for these sorts of questions.

Thanks

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/d556fc88-655c-49de-830f-bd330131d005n%40googlegroups.com.

David Hoffer

unread,
Aug 23, 2022, 11:27:21 AM8/23/22
to Quarkus Development mailing list
Reply all
Reply to author
Forward
0 new messages