Hi,

I'm using camel to expose a CXF SOAP service and I want to do it using an
URI only. I need to add a custom "In" interceptor so I want to use a
CxfEndpointConfigurer and add code to configureServer().

Here's my URI:

From("cxf:/customer?serviceClass=my.package.Customer&loggingFeatureEnabled=True&cxfEndpointConfigurer=my.package.CustomerEndpointConfigurer")

CustomerEndpointConfigurer is a class implementing the CxfEndpointConfigurer
interface. I then override configure(), configureServer() and
configureClient().

When my .war starts in jboss 6.4 EAP, I get this error:

Caused by: java.lang.IllegalArgumentException: 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
my.package.CustomerEndpointConfigurer.

Is there any way to make it work in an URI? As I see here, Camel is simply
setting the String value to the CxfEndpointConfigurer property of
CxfEndpoint without converting it to an object beforehand.

Any help would be appreciated.

Thank you!





--
View this message in context: 
http://camel.465427.n5.nabble.com/cxfEndpointConfigurer-in-an-URI-tp5773083.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to