private void createHttpWaitingPollRequestsEndpoint()
{
String endpointId = "data-http-waiting-poll-requests";
String endpointUrl = "http://{server.name}:{server.port}/qa-manual/messagebroker/httpwaitingpoll";
String endpointClass = "flex.messaging.endpoints.HTTPEndpoint";
HTTPEndpoint httpEndpoint = (HTTPEndpoint)broker.createEndpoint(endpointId, endpointUrl, endpointClass);
// <polling-enabled> is set on the client via the PollingChannel API
// <polling-interval-millis> is set on the client via the PollingChannel API
httpEndpoint.setWaitInterval(-1);
httpEndpoint.setMaxWaitingPollRequests(4);
httpEndpoint.setClientWaitInterval(3000);
}