Results 1 to 2 of 2

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

  1. #1

    Post 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,626

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •