This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to lookup an EJB from a JavaBean

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I'm creating a J2EE application.
my web application contains a simple JavaBean that hides the operation of locating my Session EJB.

this JavaBean will be used by servlets, JSPs.
this is the important part of jboss.xml :
<session>
<ejb-name>LigaBean</ejb-bean>
<jndi-name>ejb/Liga</jndi>
</session>
when trying to use the application, I got the exception :
javax.naming.NameNotFoundException: ejb not bound
I changed <jndi-element> to Liga , I got the same exception
the application is only works if I do the following :
Object obj = ic.lookup("Liga");
any ideas ???
thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic