It's not a secret anymore!*
The moose likes Distributed Java and the fly likes difference btween jni and rmi! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "difference btween jni and rmi!" Watch "difference btween jni and rmi!" New topic
Author

difference btween jni and rmi!

mateen dar
Greenhorn

Joined: Dec 27, 2004
Posts: 26
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
mateen dar
Greenhorn

Joined: Dec 27, 2004
Posts: 26
soory i miss posted. i did not mean java native interface. i mean JINI. also what is JNDI .
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference btween jni and rmi!
 
Similar Threads
Updating windows registry variables using Java program
Can java access Windows "file-properties-summary" ?
java and c++
RMI & JNI in JDK 1.4
WA #1.....word association