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.