JNDI view operation in management console does not work after binding EJB to "java:global/MyBean"

Solution Unverified - Updated -

Issue

I've been following the following doc to try and give some of our beans a custom JNDI name.

https://docs.jboss.org/author/display/AS71/JNDI+Reference

When i use the following code:

@EJB(name = "java:global/HelloService2Remote", beanInterface=HelloService2Remote.class)

The jboss management tool gives me the following error when looking at the jndi view.

     "java:global" => undefined
    }},
    "failure-description" => "JBAS011844: Failed to read java:global context entries.",

As i can see the bean can be found on the server using 'new InitialContext().lookup("java:global/HelloService2Remote")'.

Environment

  • JBoss Enterprise Application Platform (EAP) 6.0.0 and 6.0.1

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.