The Artima Developer Community
Sponsored Link

Java Buzz Forum
JBoss, EJBs, remote clients and NameNotFoundException

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Lars Hoss

Posts: 21
Nickname: woeye
Registered: Jul, 2003

Lars Hoss is a programmer focusing on J2EE and Objective-C on MacOS X
JBoss, EJBs, remote clients and NameNotFoundException Posted: Jul 5, 2003 2:05 PM
Reply to this message Reply

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.
Latest Java Buzz Posts
Latest Java Buzz Posts by Lars Hoss
Latest Posts From WoEyE's weblog

Advertisement
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:

 <jboss> <enterprise-beans> <session> <ejb-name>UserManagement</ejb-name> <jndi-name>java:/UserManagement</jndi-name> </session> </enterprise-beans> <jboss> 

And this is a snippet afterwards:
 <jboss> <enterprise-beans> <session> <ejb-name>UserManagement</ejb-name> <jndi-name>UserManagement</jndi-name> </session> </enterprise-beans> <jboss> 

Read: JBoss, EJBs, remote clients and NameNotFoundException

Topic: Via Vodafone-JavaGamesContest Previous Topic   Next Topic Topic: Via Vodafone-JavaGamesContest

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use