This post originated from an RSS feed registered with Java Buzz
by Lars Hoss.
Original Post: JBoss, EJBs, remote clients and NameNotFoundException
Feed Title: WoEyE's weblog
Feed URL: http://woeye.highteq.net/xml/weblog/woeye.rss
Feed Description: The personal weblog of WoEyE. Mostly about J2EE and MacOS X.
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: