Commit 86f8f1fa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified to register the external component after the handshake answer has been sent.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1183 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8bb243e7
......@@ -153,16 +153,16 @@ public class ComponentSession extends Session {
return null;
}
else {
// Bind the domain to this component
ExternalComponent component = ((ComponentSession) session).getExternalComponent();
InternalComponentManager.getInstance().addComponent(domain, component);
// Set the service name to the component
component.setServiceName(domain);
// Component has authenticated fine
session.setStatus(Session.STATUS_AUTHENTICATED);
// Send empty handshake element to acknowledge success
writer.write("<handshake></handshake>");
writer.flush();
// Bind the domain to this component
ExternalComponent component = ((ComponentSession) session).getExternalComponent();
InternalComponentManager.getInstance().addComponent(domain, component);
// Set the service name to the component
component.setServiceName(domain);
return session;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment