문제

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.

도움이 되었습니까?

해결책

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:

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top