Configuring the CXF bus is a common need in particular in development where we often activate the logging. The key point here is to add the LoggingFeature of CXF.
To do so in TomEE (same for OpenEJB) you can of course configure either your endpoint (webservice jaxws or jaxrs) or your application (jaxrs) to add this feature but it is done in openejb-jar.xml in the application.
However when looking CXF samples on the Internet it is often done on the CXF bus directly which is a more global configuration which can make it easier to do.
The other drawback of openejb-jar.xml for such a need is to need to package it with the application where in fact you just want it in dev.
The solution is however quite trivial since you can now configure the CXF bus in TomEE.
Just add to conf/system.properties (or as system properties or in tomee.json system-properties) the property:
org.apache.openejb.cxf.bus.features = org.apache.cxf.feature.LoggingFeature
Note: it will work too with properties, in-interceptors, in-fault-interceptors, out-interceptors, out-fault-interceptors…just use the “org.apache.openejb.cxf.bus.” prefix to configure it globally for the CXF bus.
Note 2: it can even be added in ~/.openejb/system.properties to be done on all your local instances.