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 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.