File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes diff classpath and jndi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "diff classpath and jndi" Watch "diff classpath and jndi" New topic

diff classpath and jndi


Joined: Jul 09, 2005
Posts: 18
Hi everbody,

When to use jndi.lookup mathod and when to use classpath

Thanks in advance
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31779

You use JNDI to look up a resource (like a DataSOurce) or an EJB. The classpath is used by the IDE or java to compile - it is not something you use in coding yourself.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: diff classpath and jndi