wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes RMI Naming vs. JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI Naming vs. JNDI " Watch "RMI Naming vs. JNDI " New topic
Author

RMI Naming vs. JNDI

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
Does RMI Naming lookup and JNDI Naming lookup perform the same function?
If not which is better if i am using RMI


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Both perform the same kind of service, yes.
If you're using RMI's registry and it's sufficient for what you're doing, probably you don't want to bother with JNDI. It offers more features and greater flexibility but for simple RMI it's far more work to deploy it.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
JNDI = Java Naming and Directory Interface.
it gives you a common access to several naming and directory services.
JNDI is built uppon a provider architecture -> you can access every naming service as long as there is a provider for it. There is a wide range available from sun, i think. (RMI registry, LDAP... check the sun page) there are also providers available for other services (you might have to pay) like a windows registry service provider.
-> if you just want to do some RMI: go with RMI registry.
-> if you develop on RMI regsitry but client might use other (or several other) naming services: go with JNDI
-> if you are curious and have enough time: give it a glance.
k
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Naming vs. JNDI