This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Don't understand RMI requirement

 
joel smither
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working the UrlyBird project and I have a requirement that says if I use RMI, I must use RMI over JRMP (I can't use IIOP).

What is JRMP? I have my client and server working but I don;t have a clue what JRMP is or even if I'm using is directoy or indirectly.

Thanks in advance.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12056
232
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joel,

RMI can work in native mode, or it can work with CORBA (the industry standard Common Object Request Broker Architecture). Using CORBA interoperability allows a Java program to call an object written in some other language / some other language to call a Java object.

When interoperating with CORBA, RMI must use the CORBA network protocol: IIOP (Internet Inter-ORB Protocol), however when working in native mode, RMI can use it's native protocol JRMP (Java Remote Method Protocol).

By default RMI uses JRMP.

You would only use IIOP if you had a specific requirement for it (that is: if you needed to use it in a CORBA environment). To do so, you would specify the -iiop flag when running the rmic compiler.

Regards, Andrew
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!