public void setEndpointContext (EndpointContext ctxt)

By settng a EndpointContext, JAX-WS runtime knows about addresses of other endpoints in an application. If multiple endpoints share different ports of a WSDL, then the multiple port addresses are patched when the WSDL is accessed.

This needs to be set before publishing the endpoints.

Parameters:
ctxt    that is shared for multiple endpoints

Exceptions:
java.lang.IllegalStateException     If the endpoint has been published already or it has been stopped.

Since:  JAX-WS 2.2