Hi, 

It should should work, I’m not sure if it relates to the 
PropertyPlaceholderDelegateRegistry that you use.

Here is the unit test[1] about it in camel-cxf.

[1]https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java#L76

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On March 5, 2015 at 4:41:46 PM, cgiera ([email protected]) wrote:
> I think it should work with the cxfEndpointConfigurer-parameter:
> RouteBuilder configure method:
> {raw}
> JndiRegistry registry = (JndiRegistry) (
>  
> (PropertyPlaceholderDelegateRegistry)this.getContext().getRegistry()).getRegistry();
>   
>  
> MyEndpointConfigurer myConf= new MyEndpointConfigurer ();
>  
> //and here, it is bound to the registry
> registry.bind("myConf", myConf);
>  
>  
> from("cxf:/myService?serviceClass=myServiceClass&cxfEndpointConfigurer=#myConf"
>   
> {raw}
>  
> But I don't get this work because I get the following error when starting
> the application:
> Failed to resolve endpoint:
> cxf:///myService?cxfEndpointConfigurer=%23myConf&loggingFeatureEnabled=true&serviceClass=myServiceClass
>   
> due to: Could not find a suitable setter for property: cxfEndpointConfigurer
> as there isn't a setter method with same type: java.lang.String nor type
> conversion possible: No type converter available to convert from type:
> java.lang.String to the required type:
> org.apache.camel.component.cxf.CxfEndpointConfigurer with value #myConf
>  
> How can I configure the cxfEndpointConfigurer parameter in a RouteBuilder?
>  
> kind regards,
> Christoph
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Cxf-How-can-I-change-the-namespace-of-my-incoming-message-tp5763634p5763635.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to