aspose file tools*
The moose likes Distributed Java and the fly likes What is the advantage of using RMI over servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "What is the advantage of using RMI over servlets?" Watch "What is the advantage of using RMI over servlets?" New topic
Author

What is the advantage of using RMI over servlets?

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi All,

I am totally new to RMI.

Could anybody please explain me the below queries.?

What is the advantage of RMI over servlets?

What is idle scenario to use RMI.When we go for distributed applications.?
Volodymyr Krasnikov
Greenhorn

Joined: Sep 17, 2009
Posts: 3
hi, Servlet and rmi are absolutely different technologies and you may compare them only from very very high point of view. yes, they both serve as part of client-server design. I mean you ask something - you get something.

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Yes, both are serving the client request.

What is the idle scenario, we go for RMI and for servlets ( tell me in terms of s/w design )?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
I suspect you mean "ideal" - the most important question is - who are your users and how do they want to access your service?

Bill

Java Resources at www.wbrogden.com
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Sorry for the typo.

Could you please tell me the scenario to use RMI?

Explain me in s/w design perspective. I don't have idea on RMI.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
Roughly speaking I would say that RMI is used in closely coupled systems on private networks with a small number of clients, while servlets are intended to communicate loosely with a large number of clients anywhere on the Internet or private network.

Bill
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Thanks Bill, Got the idea now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the advantage of using RMI over servlets?
 
Similar Threads
RMI Implementation
JSP & SERVLETS -- Doubt
ejb v/s servlets
what are the advantage of Hibernate Over Jdbc?
EJB v/s Servlets