Search code examples
javajax-wsjava-metro-framework

The version of Metro bundled with JavaSE?


Java SE 6 and later come bundled with Metro. Surprisingly, a Java ver x -> Metro ver y list is nowhere to be found.

How can I find out what version of Metro is bundled with my JVM? Either by inspecting the VM at runtime or by checking a file from the installed JVM.


Solution

  • JDK 6 comes bundled with JAX-WS RI. GlassFish Metro is a web services stack that includes JAX-WS RI among other components like JAXB RI or StAX, but it's a separate project. So you would have to download the Metro jars if you want to use it.

    JDK 6 started including JAX-WS RI 2.0 and since update 4 it includes JAX-WS RI 2.1.

    You can find the JAX-WS RI version your JDK is using with the wsimport command: wsimport -version.