Friday, 27 September 2013

Can JaxRsController access jax-rs resources that are in my custom grails plugin?

Can JaxRsController access jax-rs resources that are in my custom grails
plugin?

I'm using Grails 2.2 and the JSR 311 jax-rs plugin.
I've created a custom Grails plugin (call it MyPlugin) using jax-rs
resources, and installed it in another Grails application (call it
MyApplication), which is also built around jax-rs.
I am having issues reaching any of the MyPlugin resources from
MyApplication - it seems like the JaxRsController is not aware of the
resources embedded in MyPlugin. I seem to recall reading that it only
searches 'MyApplication/grails-app/resources' for jax-rs resources, which
would explain it.
Is there a way to make the JaxRsController aware of MyPlugin's jax-rs
resources? If not, is there a better approach than installing a jax-rs
plugin inside another jax-rs app?

No comments:

Post a Comment