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

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
Pie
Posts: 12014
220
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic