A recommended JAX-WS framework for working with Moxy
Asked Answered
R

2

4

Currently I'm working with CXF but because of the following code in CXF:

// fall back if we're using another jaxb implementation
try {
 riContext = JAXBUtils.createRIContext(contextClasses
           .toArray(new Class[contextClasses.size()]), tns);
}

CXF loads both Moxy and the RI JAXB context (Probably depends on non standard APIs).
The overhead in startup time and memory is too high in my case.
I'm looking for a good open source JAX-WS implementation (CXF replacement) which will work with Moxy as expected.

Roister answered 10/3, 2014 at 8:49 Comment(0)
K
4

The Metro implementation of JAX-WS (that GlassFish uses) can easily be configured to use MOXy as the JAXB provider.

In WebLogic as of version 12.1.1 MOXy is the default JAXB implementation (including the one used by JAX-WS).

For any other JAX-WS implementation where MOXy can't be configured as the JAXB provider it can be used via the Provider mechanism:

Kalasky answered 10/3, 2014 at 12:7 Comment(0)
E
4

The 3.0.0-milestone2 version of CXF should handle Moxy quite a bit better. That said, there are still bugs in Moxy that have prevented all of the CXF unit and system tests to pass with it so we don't have the same level of confidence with Moxy as we do with the JAXB RI.

Enculturation answered 10/3, 2014 at 13:39 Comment(1)
Thanks Daniel, these are great news! Since I had a specific question on how to fix CXF issue at #13631039 if you will copy your answer there I'll be happy to accept it as the answer. @Daniel KulpRoister

© 2022 - 2024 — McMap. All rights reserved.