my dog learned polymorphism
The moose likes Distributed Java and the fly likes small question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "small question" Watch "small question" New topic

small question

Duy Luong

Joined: Jul 17, 2005
Posts: 6
which way should I use ? I want use rmi over http. I consider 2 ways

- turn on 1 rmi server which listenning on port 80


- write servlet which forward request to rmi server

Thank you
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Approach 1 isn't really "RMI over HTTP" - it's just an RMI name server running on port 80. The RMI calls are still just RMI calls using JRMP or IIOP - and there are more ports used in RMI than the port that the name server is running on.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: small question
It's not a secret anymore!