protected Connection doConnect(String connectionId, Subject subject) throws IOException
{
RemoteNotificationServerHandler notificationHandler = new DefaultRemoteNotificationServerHandler(getEnvironment());
HTTPConnection invoker = new HTTPServerInvoker(mbeanServerConnection, notificationHandler);
HTTPConnection subjectInvoker = HTTPSubjectInvoker.newInstance(invoker, subject, getSecurityContext(), getEnvironment());
Connection handler = new HTTPConnectionHandler(subjectInvoker, this, connectionId);
return handler;
}