aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Why a  Deployed Bean  not bound?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Why a  Deployed Bean  not bound?!" Watch "Why a  Deployed Bean  not bound?!" New topic
Author

Why a Deployed Bean not bound?!

liang lee
Greenhorn

Joined: Feb 17, 2004
Posts: 2
I am very new to EJB.I wrote a stateless bean and deployed it under jboss,and deployed successfullyMy bean is called Agency, and its jndi name is ejb/Agency..(on jboss jmx-console, I can see that my AgencyBean has been deployed !)
I lookup the jndi for"ejb/Agency"in client program,and create a AgencyBean.But when my AgencyBean is called,there comes an exception "Agency not bound","Error connecting to java:comp/env/Agency:".
What's the problem???
Sujit udhane
Greenhorn

Joined: Dec 27, 2003
Posts: 4
Check ur jboss.xml file for <jndi-name> and corresponding lookup name in client program.
Both the names must be equal .
[ February 17, 2004: Message edited by: Sujit udhane ]
liang lee
Greenhorn

Joined: Feb 17, 2004
Posts: 2
It's the same! In fact in my client program,I looked up the jndi correctly,and create the AgencyHome Object.The excption showed before the method ejbCreate() called in my AgencyBean,and my ejbCreate() method do can be called! Why???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why a Deployed Bean not bound?!
 
Similar Threads
EJB / Jboss configuration
Referencing EJBs in a JAR file from a WAR
EXCEPTION "Name Not Found Exception: ejb not bound "
Weblogic and EJB3 JNDI lookup
javax.naming. NameNotFoundException: