URL from @Stateless
Issue
- I'm looking to find a way to obtain the URL while in a @Stateless bean. Something similar to HttpServletRequest.html.getRequestURL() perhaps. For example if I had a RESTful service with a @Stateless bean injected into it, is there any Context or something I could inject into my Stateless bean that would allow me access to the URL that the request came from?
Environment
- JBoss Enterprise Application Platform (EAP) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.