Hi Dan, We have for now defined our own jaxb models and are not using the Cxf xsd, but I was hoping that Cxf would define proper types which could then be used directly. Apache camel provides jaxb model objects which are quite useful. Since Cxf heavily uses spring XML notation we were hoping that Cxf could provide jaxb models out of the box which can be used by any tooling/generation.
Best regards, Madhav On Wednesday, October 5, 2011, Daniel Kulp <[email protected]> wrote: > On Monday, October 03, 2011 1:31:08 PM Tarun Ramakrishna wrote: >> Hi all, >> >> We are looking at generating CXF bus definitions (with features and >> lists of interceptors, etc) from Java POJO's. We looked at generating >> JAXB POJO's from cxf-core.xsd using xjc. Unfortunately, it appears >> that cxf-core.xsd is not JAXB-friendly since it makes extensive use of >> xsd:anyType to define features and interceptor lists. Looks like we >> will need to do heavy JAXB binding customization here. Maybe we are >> missing something - is there already an existing JAXB model that can >> be marshalled to a CXF spring XML ? Or is there an alternative >> mechanism ? > > There isn't really anything that I can think of, no. It's just not something > I think anyone has tried to do yet. Wish I could help more, but I'm really at > a loss. > > Dan > > >> The one alternate we can think of is to extend the CXF >> POJO model - classes such as CXFBusImpl and the various feature >> classes and provide JAXB annotations on them. But this appears rather >> brittle. >> >> We would be grateful for any suggestions/tips/pointers ! >> >> Thanks, >> Tarun > -- > Daniel Kulp > [email protected] > http://dankulp.com/blog > Talend - http://www.talend.com > -- When I tell the truth, it is not for the sake of convincing those who do not know it, but for the sake of defending those that do
