WebSphere Application Server provides interfaces for you to create endpoint references. Endpoint references are a primary concept of the Web Services Addressing (WS-Addressing) interoperability protocol, and provide a standard mechanism to encapsulate information about specific Web service endpoints. This task is a subtask of Creating a Web service application that is referenced through a Web Services Addressing endpoint reference.
You can also specify the behavior of endpoint references in a cluster environment.
Also, if high availability for stateful session beans is specified, the endpoint reference remains valid even if the stateful session bean is failed over.
If the statefulSessionBean parameter is null, requests are targeted directly at the server that hosts the endpoint and are not workload-managed, but there is no stateful session bean failover capability.
Because the endpoint reference might be workload-managed at a later date, ensure that the endpoint does not contain any in-memory state.
When the application invokes either of the previous two methods, WebSphere Application Server generates the address URI for the endpoint reference, and puts the service name and endpoint name into the metadata of the newly created endpoint reference.
Note: If you configured a virtual host for the server on which the endpoint is created, the URI of the endpoint reference refers to the virtual host of the HTTP server's configuration. You can override the HTTP endpoint URL information using the administrative console. The methods described previously will use the overridden value to generate the address URI for the endpoint reference.