|
Page Edited :
CAMEL :
Camel CXF Component
Camel CXF Component has been edited by James Strachan (Mar 05, 2008). Content:camel-cxf component design noteIntegrating CXF into CamelCamel 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. CXFConsumerCXFConsumer CXFProducerCXF Client is used to send out the incoming message from the CXFProducer DataFormatcamel-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. if (!dataFormat.equals(DataFormat.POJO)...) { List<AbstractFeature> features = new ArrayList<AbstractFeature>(); // adding the logging feature here for debug features.add(new LoggingFeature()); if (dataFormat.equals(DataFormat.PAYLOAD)) { features.add(new PayLoadDataFormatFeature()); } if (dataFormat.equals(DataFormat.MESSAGE)) { features.add(new MessageDataFormatFeature()); } // set the feature to the ServerFactoryBean or ClientFactoryBean ... } Integrate Camel into CXFCurrently , we introduce Camel Transport for CXF to integrate the Camel as an transport library in CXF. Binding the conduit and destination with the context endpointAs CXF transport API side, CXF transport API includes Conduit Here are some examples of configuring the Camel transport. |
Unsubscribe or edit your notifications preferences
