users@jax-ws.java.net

Re: how do you use JAX-WS RI with Java 6 SE or later?

From: Lukas Jungmann <lukas.jungmann_at_oracle.com>
Date: Sun, 26 Feb 2012 11:52:17 +0100

Hi,

On 02/25/2012 12:48 PM, Owen Hall wrote:
>
> How are you supposed to use JAX-WS RI with Java 6 SE or later since the
> JRE comes bundled with a version of JAX-WS? The unbundled version uses
> the same package names except some of the runtime classes use packages
> named com.sun.xml.internal.ws.*. How would instantiate an Endpoint in
> the unbundled version if its package name collides with the bundled
> Endpoint class? You'd always get the bundled Endpoint, not the unbundled
> one. Are you expected to modify the JRE bootclasspath?

No, you should use Java Endorsed Standards Override Mechanism, see
http://docs.oracle.com/javase/6/docs/technotes/guides/standards/ for
details.

HTH.
Regards,
--lj