You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Sergey Zolotaryov (JIRA)" <ji...@apache.org> on 2010/11/09 10:14:00 UTC

[jira] Commented: (CAMEL-3117) cxfbean and cxfrs components should honour jax-rs providers in the bean registry

    [ https://issues.apache.org/activemq/browse/CAMEL-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63194#action_63194 ] 

Sergey Zolotaryov commented on CAMEL-3117:
------------------------------------------

Hello everybody.

I've been trying to add custom @Provider and I see that MessageBodyWriter is correctly applied, but I cannot by any means find my MessageBodyReader's in the context. I create a reader bean in spring context and it's still not used by my cxfrs endpoint.

> cxfbean and cxfrs components should honour jax-rs providers in the bean registry
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-3117
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3117
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 2.4.0
>         Environment: cxfrs and cxfbean
>            Reporter: Christopher Hunt
>            Assignee: Willem Jiang
>             Fix For: 2.5.0
>
>         Attachments: providers.diff
>
>
> The cxfbean component does not presently provide a means of using custom providers i.e. those customised JAX-RS classes that are annotated with the @Provider declaration. 
> My recommendation is that objects instantiated in the bean container from classes annotated with @Provider are automatically registered for use by the cxfrs and cxfbean components. This includes message body writers/readers and parameter handlers i.e. anything that can be presently expressed in the cxf:rsServer/providers element.

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