I have a web application in which the two main components are a website (implemented in Groovy and Grails) and a RESTful web service for the backend (implemented using JAX-RS (Jersey) and Spring). Both will work at Glassfish. The website will call the RESTful web service. In many cases, these components will be hosted on separate servers, so the website will call RESTful over the network. If, however, I run both applications on the same Glassfish server, are there any optimizations that can be made to avoid a network call? In other words, I'm looking for some equivalent remote / local EJB interfaces for REST. Thank!
source
share