• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
i have a doubt :
how good one has to be with JNDI concepts to understand EJB.
is it necessary to throughly understand JNDI to master EJB.
is it enough if one knows the basics of JNDI , ie what is does and what are its uses.
somebody through light on this.
sakuntala devi.
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear sakuntala,
Mastering means mastering and must know everything related to the subject to master. EJB, JSP, JNDI, RMI ..... etc. all belongs to the J2EE family and you need basic understanding of each. But only basic understaing will work for sufficient learning of EJB (not mastering).
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDNI is a lookup service/mechanism. It's pretty much the same as a DNS server that finds the machine that points to a web page. you type in 'http://www.javaranch.com" and your DNS server returns/redirects you to a resouce. That's what JNDI does.
Because your EJB objects (Session, Entity and now Message Beans) could be deployed in a distributed environment. You have to have a way of finding them [distributed means they can be spread out all over the place]. JNDI will do this. When you deploy your "Client" Bean and make a JDNI entry for it called "Customers" all you have to do is make a lookup for "Customers" and it will return an interface to the "Client" bean.
EJB is the process (or piece of J2EE) that allows you to put business concepts, procedures and data into a transactional, secure and distributed environment.
You definately need to know how to 'use' JNDI to understand how to access and interact with your EJB objects, but I would not say you need to be a master.
Hope this helps.
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the topic of JNDI (I Think) Can anyone help.
When trying to run my stateful session bean as a J2EE client I get the following error:
Initiating login ...
Looking up authenticator...
Binding name:`java:comp/env/ejb/FibonacciSeQuence`
Application threw an exception:java.lang.NoClassDefFoundError: FibonacciHome
Unbinding name:`java:comp/env/ejb/FibonacciSeQuence`

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic