Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference btween jni and rmi!

 
mateen dar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i wanted to know the difference is between rmi and jni. both are for distributed programming, right. which is bettar to learn . thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI is indeed for distributed programming, but JNI is for linking non-Java libraries into Java programs, and has nothing to do with distributed programming.
 
mateen dar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
soory i miss posted. i did not mean java native interface. i mean JINI. also what is JNDI .
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jini is more of a distributed architecture rather than simply more of an API for doing distributed programming like RMI. In fact, Jini is implemented using RMI.

I would recommend learning RMI first, because you won't get very far in Jini without understanding RMI anyway.

JNDI stands for Java Naming and Directory Interface. It basically provides a way to look up distributed programs and resources using a file system or URL like structure - i.e. "names" point to a specific resource, "directories" can hold other directories or a set of names.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic