> -----Original Message----- > From: Daniel Kulp [mailto:[email protected]] > Sent: Monday, September 14, 2009 9:08 AM > To: [email protected] > Cc: Sergey Beryozkin > Subject: Re: How to have CXF work with external JAXB bindings file? > > > As Sergey said, the binding files are a code gen type thing. > Basically, the > binding files affect the annotations and such that are generated on the > generated .java files and those annotations then affect the runtime. > > What types of things are you trying to control from the bindings file? > Sometimes a custom XMLStreamWriter is appropriate. Other times, there > are > properties that can be set on the marshaller and various event > listeners and > such that can be registered as well.
I'll have to research those available properties. I have a feeling a concise list of them is hard to find. > On Mon September 14 2009 11:57:17 am Sergey Beryozkin wrote: > > Hi > > > > We've chatted with Dan on IRC about it... The external binding files > can > > only be used for code-gen purposes. They can not be utilized during > the > > marshalling time. But there's always an option to register a custom > > XMLStreamWriter. Please let us know how you'd like the output be > affected > > by an external JAXB bindings file - and I'll try to show how the > same can > > be done by registering a sample writer. > > > > cheers, Sergey > > > > KARR, DAVID (ATTCINW) wrote: > > > I'm trying to experiment with an external JAXB bindings file with > CXF. > > > Will the specs in this be used at marshalling time to allow for > > > massaging of the output, or is this only intended to be used for > code > > > generation? If it can be used at marshalling time, where exactly > do I > > > put it? Do I have to indicate its presence in the CXF > configuration > > > somehow? > > > > -- > Daniel Kulp > [email protected] > http://www.dankulp.com/blog
