Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI is specification or implementation?

 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a bit confused about RMI. The SDK comes with an implementation of RMI which I believe uses sockets. But are there other implementations of RMI, such as over https ?

thanks, D.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While exporting Remote objects (UnicastRemoteObject.exportObject()) you can specify a custom client and server socket factories.
I am not aware of any providers of the same.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't quite answer my question. If I rephrase,

Is it possible to do RMI over http?

thanks, D.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI can be used over various transports, JRMP and IIOP being the most common ones. These articles suggest that HTTP can also be used, but that it may not be all that obvious how to set it up.
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI over http is nonsensical. RMI is a protocol. http is a protocol. http provides nothing RMI does not already have so that makes no sense.

You can do RMI with SSL however.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tunnelling RMI over some other protocol may very well make sense. Getting through firewalls that only open port 80 is a typical application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic