I am attempting to create a RESTful web service using CXF.  I have everything
set up as far as Spring goes, and have no problem when using a single
<jaxrs:server> element.  The following example works fine:

<jaxrs:server id="tripMgmtServiceRest" address="/">
    <jaxrs:serviceBeans>
        <ref bean="tripManagementService"/>
    </jaxrs:serviceBeans>
    <jaxrs:providers>
        <ref bean="jsonProvider"/>
    </jaxrs:providers>
</jaxrs:server>

But if I do the following:

<jaxrs:server id="tripMgmtServiceRest" address="/">
    <jaxrs:serviceBeans>
        <ref bean="tripManagementService"/>
        <ref bean="pointOfInterestService"/>
    </jaxrs:serviceBeans>
    <jaxrs:providers>
        <ref bean="jsonProvider"/>
    </jaxrs:providers>
</jaxrs:server>

Then only the tripManagementService actually works, and the
pointOfInterestService does not.  If I put the pointOfInterestService above
the tripManagementService then it will work.  Is this not supported?  I
don't want to have to put all of my REST methods in one class.
-- 
View this message in context: 
http://www.nabble.com/Configuration-of-multiple-jaxrs%3Aserver-elements-tp20118540p20118540.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to