On Friday, March 16, 2012 04:09:57 PM Adrien DAO-LENA wrote: > It seems there is a lot of methods to override, createContext load the > class jaxbcontextfactory of com.sun in plain text and also the schema > compiler is load in plain text it seems. > I'll work on that, thanks for your reply.
Some of that is required to get the JAX-WS TCK tests to pass. Others are just for optional features and enhancements. Both of them are likely irrelevant for a Moxy based thing. Thus, any patches to help make these parts "more generic" would be more than welcome. Dan > Adrien. > > 2012/3/15 Daniel Kulp <[email protected]> > > > On Thursday, March 15, 2012 05:20:33 PM Adrien DAO-LENA wrote: > > > Is it possible to implements my own databindings class for the > > > endpoint? > > > like: public class MoxyDataBinding extends AbstractDataBinding > > > and add a tag jaxws:dataBinding in the xml file? > > > > Yes. But you're likely better off just subclassing the JAXBDataBinding > > and> > > overriding the method: > > public CachedContextAndSchemas > > > > createJAXBContextAndSchemas(Set<Class<?>> classes, > > > > String defaultNs) > > > > That said, it may require marking some things protected and/or public. > > Patches are more than welcome. :-) > > > > Dan > > > > > Adrien > > > > > > > > > 2012/3/15 Glen Mazza <[email protected]> > > > > > > > Oops--sorry, my bad. I thought that was JAX-WS. I haven't tried > > > > this, > > > > and AFAIK CXF hasn't been tested with MOXy yet. If you're using > > > > Maven, > > > > step #1 would probably be to exclude the JAXB JARs (whatever listed > > > > via > > > > mvn dependency:tree) and include the MOXy ones (which precisely I've > > > > just asked: > > > > https://twitter.com/#!/**glenmazza/status/**180322690211659776 > > > > <https:// > > > > > > twitter.com/#!/glenmazza/status/180322690211659776>).> > > > > > > > > But there will probably be other hoops to jump through after that, > > > > and > > > > > > > > quite possibly patches to CXF necessary for it all to work. > > > > > > > > Glen > > > > > > > > On 03/15/2012 11:35 AM, Adrien DAO-LENA wrote: > > > >> I'm not sure to understand, the link you past in your previous mail > > > >> is > > > >> about using jaxrs providers, can I apply that to jaxws? and yes I'm > > > >> doing > > > >> jaxws. > > > >> Thanks. > > > >> Adrien > > > >> > > > >> 2012/3/15 Glen Mazza<[email protected]> > > > >> > > > >> Are you doing JAX-WS or REST? For JAX-WS: > > > >> http://cxf.547215.n5.nabble. > > > >> > > > >>> ** > > > >>> com/How-to-configure-CXF-to-****use-different-** > > > >>> JAXBContextFactory-td5281773.****html<http://cxf.547215.n5.** > > > >>> nabble.com/How-to-configure-**CXF-to-use-different-** > > > >>> JAXBContextFactory-td5281773.**html< > > > > http://cxf.547215.n5.nabble.com/Ho > > > > w-to-configure-CXF-to-use-different-JAXBContextFactory-td5281773.html> > > > > > >>> For REST, I'm looking at it right now myself, I hoping to convert > > > >>> the > > > >>> Jersey MOXy sample (which does work) to CXF by COB if I can. > > > >>> > > > >>> Glen > > > >>> > > > >>> On 03/15/2012 09:40 AM, Adrien DAO-LENA wrote: > > > >>> Hi, > > > >>> > > > >>>> Is it possible to use Moxy as the jaxb impl of CXF? On the moxy > > > >>>> website, I > > > >>>> read that I need to put a jaxb.properties file, I paste it but it > > > >>>> does > > > >>>> not > > > >>>> seem to be read by CXF. > > > >>>> Did someone manage to do that? > > > >>>> > > > >>>> > > > >>>> Thank you > > > >>>> Adrien. > > > >>>> > > > >>>> -- > > > >>> > > > >>> Glen Mazza > > > >>> Talend Community Coders - coders.talend.com > > > >>> blog:www.jroller.com/gmazza > > > > > > > > -- > > > > Glen Mazza > > > > Talend Community Coders - coders.talend.com > > > > blog: www.jroller.com/gmazza > > > > -- > > Daniel Kulp > > [email protected] - http://dankulp.com/blog > > Talend Community Coder - http://coders.talend.com -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
