This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and JNDI

 
sakuntala devi
Greenhorn
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.
Thanks
sakuntala devi.
 
punit pandey
Greenhorn
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).
Punit
 
John Bateman
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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.
 
Andrew Jahchand
Greenhorn
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`
Thanks

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic