Dec 15th, 2012, 02:59 PM
Is it possible to have a REST API as well as RMI based service, in the same java app
I am very new to Spring-> I am extremely impressed with its ease of use, and I want to use it to create a REST API, as well as an RMI service.
What I want to know is, is it possible to deploy a single java web app that exposes the RMI service as well as the REST API? If this can be done, what (if any) considerations do I have to keep in mind to avoid conflicts/problems b/w the REST and the RMI services?
Dec 17th, 2012, 01:15 AM
Why wouldn't you... RMI or REST is nothing more then a way to access your service through a different API. Basically what you need to do is create a service and use springs RMI Exporter to create a RMI exposes API for REST create a @Controller which delegates to the service.
Tags for this Thread