• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI Naming vs. JNDI

 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does RMI Naming lookup and JNDI Naming lookup perform the same function?
If not which is better if i am using RMI
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic