• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why a Deployed Bean not bound?!

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic