Download Component Reference - Red Hat Customer Portal

Transcript
Chapter 14. CXF
cxf:handlers
A JAX-WS handler list which should be supplied to the JAX-WS endpoint. See
below.
cxf:dataBinding
You can specify the which DataBinding will be use in the endpoint. This can
be supplied using the Spring <bean class="MyDataBinding"/> syntax.
cxf:binding
You can specify the BindingFactory for this endpoint to use. This can be
supplied using the Spring <bean class="MyBindingFactory"/> syntax.
cxf:features
The features that hold the interceptors for this endpoint. A list of <bean>s or
<ref>s
cxf:schemaLocations
The schema locations for endpoint to use. A list of <schemaLocation>s
cxf:serviceFactory
The service factory for this endpoint to use. This can be supplied using the
Spring <bean class="MyServiceFactory"/> syntax
You can find more advanced examples which show how to provide interceptors, properties and handlers here:
http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html
Note
You can use CXF:properties to set the CXF endpoint's dataFormat and setDefaultBus properties from a
Spring configuration file, as follows:
<cxf:cxfEndpoint id="testEndpoint" address="http://localhost:9000/router"
serviceClass="org.apache.camel.component.cxf.HelloService"
endpointName="s:PortName"
serviceName="s:ServiceName"
xmlns:s="http://www.example.com/test">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE"/>
<entry key="setDefaultBus" value="true"/>
</cxf:properties>
</cxf:cxfEndpoint>
How to make the camel-cxf component use log4j instead of java.util.logging
CXF's default logger is java.util.logging. If you want to change it to log4j, proceed as follows. Create a
file, in the classpath, named META-INF/cxf/org.apache.cxf.logger. This file should contain the fully-qualified
name of the class, org.apache.cxf.common.logging.Log4jLogger, with no comments, on a single line.
84
Fuse Mediation Router Component Reference Version 2.6