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

Willem Jiang commented on CAMEL-7229:
-------------------------------------

Hi Sergey,

The below code of CxfRsProducer just make sure the bus setting on the cxfrs 
endpoint can take effect.
{code}
 cfb.setBus(((CxfRsEndpoint)getEndpoint()).getBus());
{code}
Current work around of setting custom bus is using option of "bus=#MyBus" for 
the cxfrs enpdoint the URI. 
If we check the "if (cxf.getBus(false) == null)", we may lost the control of 
setting the custom bus from the URI.

I think the better solution is we set the cfb bus when the cxfrs enpdoint is 
not using the default bus.
Any thought?

Willem


> [cxfrs] Producer override bean bus
> ----------------------------------
>
>                 Key: CAMEL-7229
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7229
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.12.1
>            Reporter: Alexey Markevich
>            Priority: Minor
>
> Bean configuration:
> org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean cf_cCXFRS_1 = new 
> org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean();
> cf_cCXFRS_1.setBus(customBus);
> Route:
> .to("cxfrs://bean://cCXFRS_1")
> But at
> org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(Exchange)
> cfb.setBus(((CxfRsEndpoint)getEndpoint()).getBus());



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to