I have a question related to the use of jax-ws-catalog.xml. Is it only beneficial when I have webservice client?
The specification jax-ws jsr 224 section 4.4 clearly says.
use of the catalog is in no way restricted to client uses of WSDL location URIs. In particular, resolutions of URIs to WSDL and schema documents that arise during the publishing of endpoint metadata (see 5.2.5) are subject to the requirements in this section, resulting in catalog-based URI resolutions.
and section 5.2.5 says.
When resolving URI references to other documents when processing metadata documents or any of the documents they may transitively reference, a JAX-WS implementation MUST use the catalog facility defined in section 4.4, except when there is a metadata document whose system id matches the URI in question. In other words, metadata documents have priority over catalog-based mappings.
I couldn't understand what does that means. Please could anyone explains this part of the specification using a valid usecase or an example.