Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why a Deployed Bean not bound?!

 
liang lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic