Search code examples
javagrailsgroovygroovyws

Integrate Groovy in an existent Web app


I have an existent web application, I'd like to add Groovy to this web app so that I can develop web service providers easily if possible. Is there a way to write a service class (like Grails service classes) and expose this class as ws without much pain ?

Grails uses the same thing : after adding one line to the service class, that class will be exposed automatically as a web service.

Regards


Solution

  • GroovyWS is a SOAP based implementation of Apache CXF.

    After some quick searching I found two tutorials that may be of help.

    One using Jersey and the other using Restlet. The Jersey one seems simpler.

    Creating RESTful services with Jersey and Groovy

    Building RESTful Web Apps with Groovy and Restlet, Part 1: Up and Running