I have EJB and MBean deployed in the same WAR. Is it possible to call EJB from MBean? The same JNDI lookups which work fine from the Servlet (like java:module/TestBean), fail from MBean. I believe in older JBoss versions JNDI worked the same way from MBean as from Servlet.
To call local EJB from MBean one need to use global JNDI name like java:global/MY_APP/TestEjb. Than it works fine.