Camel CXF Design
Integrating CXF into Camel
Camel provides a component API , after defined the endpoint URI format, we just need implement the Camel component API by using CXF as a library to create the client and server for camel-cxf component's consumer and producer.
CXFConsumer works as the CXF server, so we create the CXF server with the CXFEndpoint which holds the cxf endpoint information such as SEI class, wsdl location, service name and endpoint name etc. You can configure the cxf endpoint according to this schema in spring.
CXF Client is used to send out the incoming message from the CXFProducer and pass the response back.
camel-cxf component supports to handle the CXF message with different DataFormat.
To get the best reuse of the CXF generic message layer, we use the CXF feature API to setup the interceptors for different types message handling.
Integrate Camel into CXF
Currently , we introduce Camel Transport for CXF to integrate the Camel as an transport library in CXF.
Binding the conduit and destination with the context endpoint
As CXF transport API side, CXF transport API includes Conduit and Destination that we need to implement with Camel.
Here are some examples of configuring the Camel transport.