Sun Java System Message Queue 4.2 Developer's Guide for Java Clients

Endpoint

An endpoint identifies the final destination of a message. An endpoint is defined either by the Endpoint class (if you use a provider) or by the URLEndpoint class (if you don’t use a provider).)

Constructing an Endpoint

You can initialize an endpoint by calling its constructor. The following code uses a constructor to create a URLEndpoint.

myEndpoint = new URLEndpoint("http://somehost/myServlet");

Using the Endpoint to Address a Message

To address a message to an endpoint, specify the endpoint as a parameter to the SOAPConnection.call method, which you use to send a SOAP message.