This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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
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.
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com