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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content