If you stick the cxf.xml file in your resources directory (assuming its a maven project), then it should get picked up.
Are you using Fuse ESB 3.x or 4.x?
I'm using Fuse ESB 22.214.171.124. I had it in my src/main/resources, and it was being included in the bundle JAR in the right place. It just seemed that the file was being ignored/overwritten because the configuration was not applied.
Can you try to import the configure file from you application configuration ?
Thanks for the suggestion. I tried it, and it worked...eventually!
First of all Fuse couldn't find cxf.xml
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:METAINF/cxf/cxf.xml|bnd.id=193|bnd.sym=.....] cannot be resolved to URL because it does not exist
So I added META-INF.cxf to my <Import-Package/> element for my bundle. Then followed a whole series of ClassNotFoundExceptions so I have ended up with this for my bundle.
Is it really necessary? Am I missing something which avoids this?
As a follow up to this, I eventually went with a custom cxf-appname.xml file, preventing conflict issues with cxf.xml.
This is then imported in my camel-context.xml
The configuration now works in Fuse ESB 126.96.36.199 without any problems.