wood burning stoves 2.0
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: 33124

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: diff classpath and jndi
It's not a secret anymore!