JBoss, EJBs, remote clients and NameNotFoundException
Today we tried to access our EJBs through a remote client. Unfortunately we were not able to connect because the lookup always failed with a NameNotFoundException error. Of course we were sure that those EJBs were bound because our webapp were able to access them. After some time of investigation we finally found the cause: in our jboss.xml file we set the JNDI name to java:/<ejb>. It seems that java:/ is visible inside the JVM only. After we changed the JNDI name to simply <ejb> everything worked fine.
So here's a snippet from our jboss.xml file before:
[code]
And this is a snippet afterwards:
[code]