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

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");