« Return to Thread: Integrate GroovyWS into a Grails-Application

Re: Integrate GroovyWS into a Grails-Application

by j pimmel :: Rate this Message:

Reply to Author | View in Thread

Thomas

Having done quite a lot with GroovyWS (Client not Server) and looking at the source of the WSServer, i'm reminded of similar pain we suffered in relation to this API. I will answer your point .

http://svn.codehaus.org/groovy-contrib/groovyws/trunk/src/main/java/groovyx/net/ws/WSServer.java

Given the way which WSServer is wiring itself up means it is deferring entirely to functionality in-built within the apache APIs, namely org.apache.cxf.frontend.ServerFactoryBean and org.apache.cxf.frontend.Server

I haven't looked in the source for these but would take a guess that this is kicking off some socket listening thread on the port and context URL that your call to setNode defines.

Assuming that is happening, none of that functionality would be linked in any way at all to the incoming request handling model of Jetty (which passes onto Grails)

And given that, I don't believe the URI mappings that are inherent to Grails would be linked to the URI context specified to the setNode method

So as much as I can tell its something which isn't likely to work without further changes

Cheers

J


On Thu, Oct 9, 2008 at 5:41 PM, ASEWS08 <thomas.neuboeck@...> wrote:

Hey!

We've tried to integrate the GroovyWS-Plugin in a Grails-Application.
Without success.

We've got problems to integrate the server-side part of the groovyWs-plugin
into our application.
The sample (MathService & co) works fine without grails, but we don't know
how to integrate this into grails.

We tried to integrate the ws-exposing into the BootStrap. Without success.
(class not found exception)
I've already found other attemps of integration, which also doesn't work.
(to implement the Class as InitializingBean)


Our Setting: Groovy 1.5.6, Grails 1.0.3, GroovyWS 0.3.1 and jdk 6u7. Our IDE
is intellij 7.0.4 (incl. the jet/groovy-plugin)



The combination xfire (server, expose the webservice) and client (WSClient
-> part of GroovyWS) works fine.

Did anybody know how to integrate the server-component (WSServer) into a
grails application?
What's the best part of the grails-app. to put the following code in!?

server.setNode("MyService","http://localhost:8080/services/MyService")


BestRegards

Thomas
--
View this message in context: http://www.nabble.com/Integrate-GroovyWS-into-a-Grails-Application-tp19902784p19902784.html
Sent from the grails - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



 « Return to Thread: Integrate GroovyWS into a Grails-Application