1

Hi i'm wondering if is possible to make a RESTful webservice with RMI, for example.. RMI server and RESTful client, and how I would do it? thanks in advance

boui
  • 11
  • 4
  • 1
    I think this can help you which your Q [link](http://stackoverflow.com/questions/6702409/rmi-vs-rest-service) and this [this](http://stackoverflow.com/questions/100993/rmi-vs-web-services-whats-best-for-java2java-remoting) – Abdelhak Nov 16 '15 at 21:22

1 Answers1

-1

It is definitely possible - although I am not sure how it can be useful.

The RESTful client can send the REST query to an intermediate Rest/RMI converter which converts a REST query to RMI and forwards it to an RMI client. The RMI client will forward the query to the RMI sever and then respond once it gets the response from the RMI server.

Something like below -

[REST Client] --(REST query)--> [Rest/RMI converter/RMI Client]--> (RMI request) --> [RMI Server]

[REST Client] <---(REST response) <-- [Rest/RMI converter/RMI Client]--- (RMI response) <-- [RMI Server]

Community
  • 1
  • 1
TR1
  • 323
  • 1
  • 9