• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparision of RMI with Web services

 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we have Java at both the ends then what are the pros and cons of using the RMI and webservices.
 
Ajay Saxena
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java-Java communication is better implemented over RMI,as the extra step of constructing the SOAP layer is unnecessary in this context.

RMI,however,requires the clients of a service to be implemented in Java. So you would have to compromise on the accessibility of the service by clients implemented in other languages say C++/C#.

However if you expose the same RMI service as a web service,any client ,irrespective of its language of implementation,can consume the service simply by constructing a SOAP(XML)request and passing it over the wire.
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have java at both the ends. So we can use RMI. What I am looking at is the security implication of the communication in both the cases
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!