How to programatically get the JNDI URL in JBoss EAP?

Solution Verified - Updated -

Issue

  • I need to retrieve the jndi and hajndi urls from within a jboss hosted webservice.
  • Is there some annotation similar to @EJB which might help?  Or a property to get?

Environment

  • JBoss Enterprise Application Platform (EAP) 4.3

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