URL from @Stateless

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.