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???
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 ]
Joined: Feb 17, 2004
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???