camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Hunt (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-3117) cxfbean and cxfrs components should honour jax-rs providers in the bean registry
Date Sat, 11 Sep 2010 15:15:41 GMT

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

Christopher Hunt edited comment on CAMEL-3117 at 9/11/10 11:15 AM:
-------------------------------------------------------------------

I've subsequently thought that it'd be easier (and consistent) for the component to have a
list of providers specified; in a similar fashion to how handlers are specified for the jetty
component. For example:

.to("cxfbean:mybean?providers=#myprovider1,#myprovider2");

This also means that I'm constraining the provider specification in the manner above to the
cxfbean component. This is because the cxfrs component already allows the specification of
providers via the cxf:rsServer element.

I'll attach the code required to make this happen for the cxfbean component now.

      was (Author: huntc@internode.on.net):
    I've subsequently thought that it'd be easier (and consistent) for the component to have
a list of providers specified; in a similar fashion to how handlers are specified for the
jetty component. For example:

.to("cxfbean:mybean?providers=#myprovider1,#myprovider2");

I'll attach the code required to make this happen.
  
> 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
>
> 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.


Mime
View raw message