Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to have a REST API as well as RMI based service, in the same java app Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to have a REST API as well as RMI based service, in the same java app

    Hi

    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?

    Thanks,
    Arvind.

  • #2
    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.

    Comment

    Working...
    X