[ 
https://issues.apache.org/jira/browse/CXF-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Barry Fitzgerald updated CXF-1416:
----------------------------------

    Attachment: CXF-1416-test.patch

Test for the above patch. Uses the following spring config:

  <jaxrs:server id="bookservice"
                        address="/">
    <jaxrs:serviceBeans>
      <ref bean="petstore"/>    
      <ref bean="bookstore"/>
    </jaxrs:serviceBeans>                  
  </jaxrs:server>
  
  <bean id="bookstore" scope="prototype" 
class="org.apache.cxf.systest.jaxrs.BookStore">
  </bean>
  <bean id="petstore" scope="prototype" 
class="org.apache.cxf.systest.jaxrs.PetStore">
  </bean>

As far as I can see the existing Spring test was not using the Spring config - 
this is now also resolved.

> Enhancement to JAX-RS spring configuration. 
> --------------------------------------------
>
>                 Key: CXF-1416
>                 URL: https://issues.apache.org/jira/browse/CXF-1416
>             Project: CXF
>          Issue Type: Sub-task
>          Components: REST
>    Affects Versions: 2.1
>            Reporter: Jervis Liu
>         Attachments: CXF-1416-test.patch, CXF-1416.patch
>
>
> JAX-RS allows multiple root resources, for example, using  
> JAXRSServerFactoryBean.setResourceClasses(Class... classes) . But the 
> corresponding Spring configuration only allows setting one root resource 
> class, eg:
>   <jaxrs:server id="bookservice"  address="/">
>     <jaxrs:serviceBeans>
>       <ref bean="bookstore"/>
>     </jaxrs:serviceBeans>                
>   </jaxrs:server>
>   <bean id="bookstore" scope="prototype" 
> class="org.apache.cxf.systest.jaxrs.BookStore">
>   </bean>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to